fixup some tmux configuration

This commit is contained in:
Daylin Morgan 2023-02-20 14:40:25 -06:00
parent 83b5bd9afb
commit 8e946afafb
3 changed files with 14 additions and 0 deletions

View file

@ -12,6 +12,7 @@
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
export ZDOTDIR=${ZDOTDIR:-${XDG_CONFIG_HOME}/zsh}
export DOTFILES_DIR=${DOTFILES_DIR:-${HOME}/.dotfiles})
#
# .zprofile

View file

@ -36,3 +36,12 @@ alias zshrc='${EDITOR:-vim} "${ZDOTDIR:-$HOME}"/.zshrc'
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
alias zdot='cd ${ZDOTDIR:-~}'
# tmux
alias t-labbook="$DOTFILES_DIR/tmux/labbook.sh"
# source custom tmux.conf with older tmux
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
alias t='tmux'
alias tn='tmux new-session'
alias tl='tmux list-sessions'

View file

@ -0,0 +1,4 @@
#!/usr/bin/env zsh
tmux attach -t "$@" || tmux new-session -s "$@"