Skip to content

Commit c6cf0db

Browse files
committed
🔎 fzf
1 parent 7985526 commit c6cf0db

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

shell/.bashrc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ completions=(
4444
makefile
4545
ssh
4646
uv
47-
zoxide
4847
)
4948
aliases=(
5049
general
@@ -53,7 +52,11 @@ plugins=(
5352
starship
5453
git
5554
bashmarks
55+
zoxide
5656
)
57+
if command -v fzf &>/dev/null; then
58+
plugins+=("fzf")
59+
fi
5760

5861
source "${OSH}/oh-my-bash.sh"
5962

@@ -82,10 +85,6 @@ fi
8285
if command -v direnv &>/dev/null; then
8386
eval "$(direnv hook bash)"
8487
fi
85-
# fzf
86-
if command -v fzf &>/dev/null; then
87-
eval "$(fzf --bash)"
88-
fi
8988

9089
#########################################################################################################
9190

shell/.zshrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ plugins=(
2222
zsh-autosuggestions
2323
zsh-completions
2424
)
25+
if command -v fzf &>/dev/null; then
26+
plugins+=("fzf")
27+
fi
2528

2629
if ! command -v omz &> /dev/null; then
2730
source "${ZSH}/oh-my-zsh.sh"
@@ -80,10 +83,6 @@ fi
8083
if command -v direnv &>/dev/null; then
8184
eval "$(direnv hook zsh)"
8285
fi
83-
# fzf
84-
if command -v fzf &>/dev/null; then
85-
source <(fzf --zsh)
86-
fi
8786

8887
# disable autocd
8988
unsetopt autocd

0 commit comments

Comments
 (0)