diff --git a/_cli/zsh/.zshrc b/_cli/zsh/.zshrc index 407b76b..1dcaf8f 100644 --- a/_cli/zsh/.zshrc +++ b/_cli/zsh/.zshrc @@ -21,7 +21,6 @@ source $ZDOTDIR/aliases.zsh source $ZDOTDIR/cleanhome.zsh source $ZDOTDIR/fzf.zsh source $ZDOTDIR/keys.zsh -source $ZDOTDIR/ssh.zsh # source modules source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh diff --git a/_cli/zsh/fzf.zsh b/_cli/zsh/fzf.zsh index 803cf3f..6287655 100644 --- a/_cli/zsh/fzf.zsh +++ b/_cli/zsh/fzf.zsh @@ -1,4 +1,5 @@ if [[ $(command -v fzf) ]]; then + source <(fzf --zsh) export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/config/fd' export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/config/fd' export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'" diff --git a/_cli/zsh/ssh.zsh b/_cli/zsh/ssh.zsh deleted file mode 100644 index af29ff1..0000000 --- a/_cli/zsh/ssh.zsh +++ /dev/null @@ -1,6 +0,0 @@ -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent > "$XDG_CACHE_HOME/ssh-agent.env" -fi -if [[ ! "$SSH_AUTH_SOCK" ]]; then - source "$XDG_CACHE_HOME/ssh-agent.env" >/dev/null -fi