-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshenv
27 lines (26 loc) · 887 Bytes
/
.zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# environment settings
typeset -U path PATH
export BUILDKIT_PROGRESS=plain
export EDITOR=nano
export PAGER=less
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export GOPATH=$HOME/code
export GOBIN=$GOPATH/bin
export PATH="$GOBIN:$PATH"
export ZIM_CONFIG_FILE=$HOME/.dotconfig/dotfiles/zimrc
################################################################################
## Qiita: tmuxのウィンドウ名をsshでつないでいるときは接続先ホストにする
################################################################################
function ssh() {
if [[ -n $(printenv TMUX) ]]
then
local window_name=$(tmux display -p '#{window_name}')
tmux rename-window -- "$@[-1]" # zsh specified
# tmux rename-window -- "${!#}" # for bash
command ssh $@
tmux rename-window $window_name
else
command ssh $@
fi
}