From 0326268087540bdb8d7caeacb19997418a0a8fbd Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 5 Jul 2022 17:20:16 -0400 Subject: [PATCH] tmux: add config --- src/.config/fish/config.fish | 2 ++ src/.config/fish/functions/tmux_prompt.fish | 12 ++++++++++++ src/.config/tmux/tmux.conf | 17 +++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 src/.config/fish/functions/tmux_prompt.fish create mode 100644 src/.config/tmux/tmux.conf diff --git a/src/.config/fish/config.fish b/src/.config/fish/config.fish index fb76f52..879c8fd 100644 --- a/src/.config/fish/config.fish +++ b/src/.config/fish/config.fish @@ -4,6 +4,8 @@ end source ~/.config/fish/aliases.fish +source ~/.config/fish/functions/tmux_prompt.fish + # Set GPG_TTY gpgt diff --git a/src/.config/fish/functions/tmux_prompt.fish b/src/.config/fish/functions/tmux_prompt.fish new file mode 100644 index 0000000..519e162 --- /dev/null +++ b/src/.config/fish/functions/tmux_prompt.fish @@ -0,0 +1,12 @@ +if set -q TMUX + + # python venv style prompt replacement + functions -c fish_prompt _old_fish_prompt + + function fish_prompt + printf "%s%s%s" (set_color 809C80) "(tmux) " (set_color normal) + _old_fish_prompt + end + + printf "aawagga" +end diff --git a/src/.config/tmux/tmux.conf b/src/.config/tmux/tmux.conf new file mode 100644 index 0000000..4110b1e --- /dev/null +++ b/src/.config/tmux/tmux.conf @@ -0,0 +1,17 @@ +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +bind u split-window -h +bind i split-window -v +unbind '"' +unbind % + +bind h select-pane -L +bind l select-pane -R +bind j select-pane -D +bind k select-pane -U + +set -g status off + +set escape-time 20