Skip to content

Commit

Permalink
adding inputrc
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed May 8, 2024
1 parent 9dd5ae9 commit 987f980
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .inputrc
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 2 additions & 3 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 %

Expand Down

0 comments on commit 987f980

Please sign in to comment.