diff options
| author | jason | 2025-08-29 15:13:30 -0600 |
|---|---|---|
| committer | jason | 2025-08-29 15:13:30 -0600 |
| commit | 5dd1d6c1b35133e33650ba76fcae42c985a1725a (patch) | |
| tree | e37b3b43b85841ed3a4c79f151ea493de0c8930d | |
| parent | 5d2bffa6e8c1b0276beafa9bdc83ad022c7d6267 (diff) | |
| download | dotfiles-5dd1d6c1b35133e33650ba76fcae42c985a1725a.tar.gz dotfiles-5dd1d6c1b35133e33650ba76fcae42c985a1725a.zip | |
fix pass and fzf completions
| -rw-r--r-- | bash/.bashrc | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 40d90ef..f76b1d9 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -246,29 +246,9 @@ fi | |||
| 246 | ####### | 246 | ####### |
| 247 | 247 | ||
| 248 | # FZF | 248 | # FZF |
| 249 | 249 | FZF=`which fzf 2> /dev/null` | |
| 250 | ## Void | 250 | if [ -x "$FZF" ]; then |
| 251 | if [ -f /usr/share/fzf/completion.bash ]; then | 251 | eval "$(fzf --bash)" |
| 252 | . /usr/share/fzf/completion.bash | ||
| 253 | . /usr/share/fzf/key-bindings.bash | ||
| 254 | fi | ||
| 255 | ## Debian | ||
| 256 | if [ -f /usr/share/doc/fzf/examples/completion.bash ]; then | ||
| 257 | # For apt install fzf | ||
| 258 | . /usr/share/doc/fzf/examples/completion.bash | ||
| 259 | . /usr/share/doc/fzf/examples/key-bindings.bash | ||
| 260 | fi | ||
| 261 | |||
| 262 | ## OS X/homebrew | ||
| 263 | if [ -f /opt/homebrew/opt/fzf/shell/completion.bash ]; then | ||
| 264 | . /opt/homebrew/opt/fzf/shell/completion.bash | ||
| 265 | . /opt/homebrew/opt/fzf/shell/key-bindings.bash | ||
| 266 | fi | ||
| 267 | |||
| 268 | ## OpenBSD | ||
| 269 | if [ -f /usr/local/share/fzf/bash/key-bindings.bash ]; then | ||
| 270 | . /usr/local/share/fzf/bash/key-bindings.bash | ||
| 271 | . /usr/local/share/fzf/bash/completion.bash | ||
| 272 | fi | 252 | fi |
| 273 | 253 | ||
| 274 | ## TCL/TK via homebrew | 254 | ## TCL/TK via homebrew |
| @@ -278,6 +258,13 @@ if [ -d /opt/homebrew/opt/tcl-tk/bin ]; then | |||
| 278 | PATH=/opt/homebrew/opt/tcl-tk/bin:$PATH | 258 | PATH=/opt/homebrew/opt/tcl-tk/bin:$PATH |
| 279 | fi | 259 | fi |
| 280 | 260 | ||
| 261 | # password-store completions | ||
| 262 | if [ -f /usr/local/share/bash-completion/completions/pass ]; then | ||
| 263 | source /usr/local/share/bash-completion/completions/pass | ||
| 264 | fi | ||
| 265 | if [ -f /usr/local/share/bash-completion/completions/pass-otp ]; then | ||
| 266 | source /usr/local/share/bash-completion/completions/pass-otp | ||
| 267 | fi | ||
| 281 | ####### | 268 | ####### |
| 282 | 269 | ||
| 283 | #TERM="xterm-256color" | 270 | #TERM="xterm-256color" |