Merge branch 'master' of github.com:thomasba/dot-files

main
Thomas Ba. 5 years ago
commit 4d231a077a

@ -43,6 +43,7 @@ Plug 'nathanaelkane/vim-indent-guides'
Plug 'chrisbra/csv.vim' Plug 'chrisbra/csv.vim'
Plug 'vim-scripts/icalendar.vim' Plug 'vim-scripts/icalendar.vim'
Plug 'cespare/vim-toml' Plug 'cespare/vim-toml'
Plug 'robertbasic/vim-hugo-helper'
" Files " Files
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }

@ -14,6 +14,20 @@ case "$MTYPE" in
"PC") "PC")
source $HOME/.zsh/commands-pc source $HOME/.zsh/commands-pc
;; ;;
"wlm")
source $HOME/.zsh/commands-server
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
eval $(ssh-agent -s) > /dev/null
else
export SSH_AGENT_PID=$(pgrep ssh-agent)
export SSH_AUTH_SOCK=$(find /tmp/ssh-* -name 'agent.*')
fi
if [[ "$(ssh-add -l)" == "The agent has no identities." ]]; then
ssh-add
fi
;;
"SERVER") "SERVER")
source $HOME/.zsh/commands-server source $HOME/.zsh/commands-server
;; ;;
@ -29,6 +43,8 @@ fi
if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] ; then if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] ; then
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
elif [ -f "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] ; then
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
else else
printf "-!- zsh-syntax-highlighting not installed!" printf "-!- zsh-syntax-highlighting not installed!"
fi fi

Loading…
Cancel
Save