dotfiles/zsh/.oh-my-zsh/custom/tmux.zsh

9 lines
224 B
Bash
Raw Normal View History

2016-10-29 05:09:40 +00:00
# Conform to XDG Base Directory specification
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
alias tmux='tmux -f ~/.config/tmux/tmux.conf'
# Connect to remote tmux session via SSH
ssh-tmux(){
ssh -t $@ "tmux attach || tmux new";
}