comparison dot_zshrc @ 651:c6ce12cfc85f

Add ssh-agent to zsh startup
author zegervdv <zegervdv@me.com>
date Tue, 06 Sep 2022 08:07:51 +0200
parents da1e79692928
children ad96f4d65995
comparison
equal deleted inserted replaced
650:da1e79692928 651:c6ce12cfc85f
180 180
181 # nvim completion 181 # nvim completion
182 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)' 182 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)'
183 zstyle ':completion:*:*:nvim:*' file-sort modification 183 zstyle ':completion:*:*:nvim:*' file-sort modification
184 184
185 if [ -z "$SSH_AUTH_SOCK" ]; then
186 eval "$(ssh-agent)"
187 fi
188
185 # fg when pressing Ctrl+Z 189 # fg when pressing Ctrl+Z
186 function fancy-ctrl-z () { 190 function fancy-ctrl-z () {
187 if [[ $#BUFFER -eq 0 ]]; then 191 if [[ $#BUFFER -eq 0 ]]; then
188 if [[ $(jobs | wc -l) -gt 0 ]]; then 192 if [[ $(jobs | wc -l) -gt 0 ]]; then
189 BUFFER='fg' 193 BUFFER='fg'