update tmux aliases

This commit is contained in:
Daylin Morgan 2023-01-16 12:54:08 -06:00
parent 2e07b6fa54
commit 37d4cc2f3a
2 changed files with 12 additions and 11 deletions

View file

@ -27,16 +27,6 @@ fi
is-executable lazygit && alias lg=lazygit
# source custom tmux.conf with older tmux
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
# Attaches tmux to the last session; creates a new session if none exists.
alias t='tmux attach || tmux new-session'
alias ta='tmux attach -t'
alias tn='tmux new-session'
alias tl='tmux list-sessions'
alias rc="rclone --filter-from ~/.config/rclone/filter-file.txt"
# prefer lvim > nvim > vim
@ -75,5 +65,12 @@ is-executable gum && alias plz="gum input --prompt='🔒' --password | sudo -nS"
alias dockdots='docker run --rm -it -u "$(id -u):$(id -g)" -v "$PWD:/home/$USER/data" dots'
# 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'
alias tmux-labbook="$DOTFILES_DIR/tmux/labbook.sh"

View file

@ -106,3 +106,7 @@ add-to-path () {
print-paths() {
sed 's/:/\n/g' <<< "$PATH"
}
ta () {
tmux attach -t "$@" || tmux new-session -s "$@"
}