=Byobu improvements

This commit is contained in:
Gal Szkolnik 2022-08-15 16:57:29 -04:00
parent f457cef8a1
commit 54c53c011c
2 changed files with 24 additions and 0 deletions

View file

@ -6,4 +6,20 @@ if [[ -n "$(which-command tmux)" ]]; then
__C="$HOME/.local/share/bash-completion/tmux/completions/tmux"
[[ -r $__C ]] && . <( cat $__C )
unset __C
function tmux-down() {
tmux split-window "${@}"
}
function tmux-up() {
tmux-down "${@}"; tmux swap-pane -dt -1
}
function tmux-right() {
tmux split-window -h "${@}"
}
function tmux-left() {
tmux-right "${@}"; tmux swap-pane -dt -1
}
fi