Always tmux-ing

This commit is contained in:
Oliver Davies 2020-01-21 07:21:30 +00:00
parent 47a04ad6f2
commit f31e39e5f5
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,9 @@
_not_inside_tmux() {
[[ -z "$TMUX" ]]
}
ensure_tmux_is_running() {
if _not_inside_tmux; then
tat
fi
}

View file

@ -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