dotfiles

personal configurations for my systems and programs
git clone git@git.eonndev.com/dotfiles.git
Log | Files | Refs

commit 43860e2aef5303aff09b165ae823eee524707b19
parent 5ac3a82e1291dc94f6a955af1088347615b880ec
Author: iressa <ian@eonndev.com>
Date:   Wed, 17 Mar 2021 00:10:48 -0400

3/17/21 - Invoke tmux in .bashrc with small .tmux.conf

Diffstat:
M.bashrc | 4++++
A.tmux.conf | 12++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -14,6 +14,10 @@ if [[ $- != *i* ]] ; then return fi +if command -v tmux >/dev/null 2>&1; then + [ -z "${TMUX}" ] && (tmux attach || tmux) >/dev/null 2>&1 +fi + export HOME=/home/operatorator export XAUTHORITY=$HOME/.Xauthority diff --git a/.tmux.conf b/.tmux.conf @@ -0,0 +1,12 @@ +set -g prefix C-a +bind C-a send-prefix + +bind \\ split-window -h +bind | split-window -v +unbind '"' +unbind % + +bind -n M-h select-pane -L +bind -n M-j select-pane -D +bind -n M-k select-pane -U +bind -n M-l select-pane -R