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