Add default Tmux session on ZSH startup
This commit is contained in:
parent
492f8f1a18
commit
7bac286d62
6
.zshrc
6
.zshrc
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user