dotfiles/zsh/.config/oh-my-zsh/custom/tmux.zsh
George Rawlinson 19e6684e9a refactor(zsh): rename scripts
move from standard OMZ directory to preferred (XDG) directory
2018-07-23 12:41:06 +12:00

8 lines
224 B
Bash

# 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";
}