fixup some tmux configuration
This commit is contained in:
parent
83b5bd9afb
commit
8e946afafb
3 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
||||
|
|
4
home/private_dot_config/zsh/functions/ta
Normal file
4
home/private_dot_config/zsh/functions/ta
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
tmux attach -t "$@" || tmux new-session -s "$@"
|
||||
|
Loading…
Reference in a new issue