dotfiles
shell, editor, ssh.
git clone https://owenrusk.dev/dotfiles.git
commit 90d543061758ca60bf25c5d3f00e9c69e13dbc75 parent 1693b0d767e1028cf3d54cd218b8fd4648d9baa9 author Owen Rusk <owen@papermothgames.com> date 2024-03-05 21:48:17 -0600
tmux: prefix on ctrl-a, splits keep the directory
| install.sh | +1 | -0 |
| tmux/tmux.conf | +20 | -0 |
diff --git a/install.sh b/install.sh index 8175593..6c199de 100755 --- a/install.sh +++ b/install.sh @@ -11,4 +11,5 @@ link() { link zsh/zshenv "$HOME/.zshenv" link zsh/zshrc "$HOME/.zshrc" link nvim "$HOME/.config/nvim" +link tmux/tmux.conf "$HOME/.tmux.conf" link git/config "$HOME/.config/git/config" diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..94fa2ba --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,20 @@ +# prefix on ctrl-a. ctrl-b is too far. +set -g prefix C-a +unbind C-b +bind C-a send-prefix + +set -g base-index 1 +setw -g pane-base-index 1 +set -g history-limit 50000 +set -g default-terminal "tmux-256color" +setw -g mode-keys vi + +bind r source-file ~/.tmux.conf \; display "reloaded" +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" + +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R