Add default Tmux session on ZSH startup

This commit is contained in:
Tanguy Herbron 2021-12-03 09:52:56 +01:00
parent 492f8f1a18
commit 7bac286d62

6
.zshrc
View File

@ -78,7 +78,6 @@ alias lc="docker container ls"
alias vim="nvim"
alias resource="source ~/.zshrc"
alias almond-dev="~/.tmux/almond-dev"
# Dotfiles alias for easy dotfile management
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
@ -100,3 +99,8 @@ alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode'
alias gitcommiiiiiiiiiiiiiit='cz'
alias clip='xclip -selection primary'
# Finally, start a tmux session
[ -x "$(command -v tmux)" ] \
&& [ -z "${TMUX}" ] \
&& { tmux attach || tmux new -s Halia -n Local -d && tmux attach; }