diff options
-rw-r--r-- | 05-functions.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/05-functions.zsh b/05-functions.zsh new file mode 100644 index 0000000..d69acf3 --- /dev/null +++ b/05-functions.zsh @@ -0,0 +1,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 |