aboutsummaryrefslogtreecommitdiff
path: root/05-functions.zsh
blob: d69acf3595ef990a48ca183788cb6b455d717914 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
if [ -n '$TMUX' ]; then
  function refresh {
    export SSH_AUTH_SOCK="$(tmux show-environment | grep '^SSH_AUTH_SOCK'  | cut -d '=' -f 2)"
    export SSH_AUTH_KEY="$(tmux show-environment | grep '^SSH_AUTH_KEY'	  | cut -d '=' -f 2)"
    export SSH_CONNECTION="$(tmux show-environment | grep '^SSH_CONNECTION' | cut -d '=' -f 2)"
    export DISPLAY="$(tmux show-environment | grep '^DISPLAY'	     | cut -d '=' -f 2)"
  }
else
  function refresh { }
fi