update tmux aliases
This commit is contained in:
parent
2e07b6fa54
commit
37d4cc2f3a
2 changed files with 12 additions and 11 deletions
|
@ -27,16 +27,6 @@ fi
|
||||||
|
|
||||||
is-executable lazygit && alias lg=lazygit
|
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"
|
alias rc="rclone --filter-from ~/.config/rclone/filter-file.txt"
|
||||||
|
|
||||||
# prefer lvim > nvim > vim
|
# 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'
|
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"
|
|
||||||
|
|
|
@ -106,3 +106,7 @@ add-to-path () {
|
||||||
print-paths() {
|
print-paths() {
|
||||||
sed 's/:/\n/g' <<< "$PATH"
|
sed 's/:/\n/g' <<< "$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ta () {
|
||||||
|
tmux attach -t "$@" || tmux new-session -s "$@"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue