From 987f980cee90bb664d71c757a513a5cba113dfe3 Mon Sep 17 00:00:00 2001 From: DMcP89 Date: Wed, 8 May 2024 18:33:27 -0400 Subject: [PATCH] adding inputrc --- .inputrc | 8 ++++++++ .tmux.conf | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .inputrc diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..cadb900 --- /dev/null +++ b/.inputrc @@ -0,0 +1,8 @@ +set editing-mode vi +set show-mode-in-prompt on +set vi-cmd-mode-string "\1\e[1;48;5;246;38;5;237m\2 CMD \1\e[48;5;239;38;5;246m\2\1\e[0m\2" +set vi-ins-mode-string "\1\e[1;48;5;109;38;5;237m\2 INS \1\e[48;5;239;38;5;109m\2\1\e[0m\2" +# optionally: +# switch to block cursor before executing a command +set keymap vi-insert +RETURN: "\e\n" diff --git a/.tmux.conf b/.tmux.conf index 23a91bf..6b2e93d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -6,10 +6,9 @@ unbind C-b set-option -g prefix C-a bind-key C-a send-prefix - # Remap pane splits -bind | split-window -h -bind - split-window -v +bind | split-window -h -c "#{pane_current_path}" # Open new pane in same directory +bind - split-window -v -c "#{pane_current_path}" unbind '"' unbind %