Переглянути джерело

Added SSH-agent to zshrc.local and updated tmux

Viktor Grahn 4 роки тому
батько
коміт
e99d633c25
2 змінених файлів з 7 додано та 0 видалено
  1. 4 0
      .tmux.conf
  2. 3 0
      .zshrc.local

+ 4 - 0
.tmux.conf

@@ -0,0 +1,4 @@
+set -g default-terminal "tmux-256color"
+bind '"' split-window -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
+bind C new-window -c "#{pane_current_path}"

+ 3 - 0
.zshrc.local

@@ -402,3 +402,6 @@ zstyle ':vcs_info:*' actionformats "${MAGENTA}(${NO_COLOR}%s${MAGENTA})${YELLOW}
 zstyle ':vcs_info:*' formats       "${MAGENTA}(${NO_COLOR}%s${MAGENTA})${YELLOW}-${MAGENTA}[${GREEN}%b%u%c${MAGENTA}]${NO_COLOR}%} " "zsh: %r"
 
 setopt HIST_IGNORE_SPACE
+
+ps -p $SSH_AGENT_PID > /dev/null || eval `ssh-agent -s`                                                                                                                                                                                       
+ssh-add -l | grep sevikgr > /dev/null 2>&1 || (echo "Adding ssh-key to ssh-agent"; ssh-add)