Always tmux-ing
This commit is contained in:
parent
47a04ad6f2
commit
f31e39e5f5
9
tag-zsh/zsh/configs/tmux.zsh
Normal file
9
tag-zsh/zsh/configs/tmux.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
_not_inside_tmux() {
|
||||
[[ -z "$TMUX" ]]
|
||||
}
|
||||
|
||||
ensure_tmux_is_running() {
|
||||
if _not_inside_tmux; then
|
||||
tat
|
||||
fi
|
||||
}
|
|
@ -15,5 +15,7 @@ for function in $HOME/.zsh/functions/*; do
|
|||
source $function
|
||||
done
|
||||
|
||||
ensure_tmux_is_running
|
||||
|
||||
# Local config
|
||||
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
|
||||
|
|
Loading…
Reference in a new issue