aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-08-19 16:31:45 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-08-19 16:31:45 +0100
commitb094a88067e008fda09bab8c25cf2a2add163f0e (patch)
treeaa587ee5d87a40113a5844035d1061a27b1eaa15
parent2fb7897da4a63b19e174fb8ab791b226a9f6e9d5 (diff)
downloaddotfiles-b094a88067e008fda09bab8c25cf2a2add163f0e.tar.gz
dotfiles-b094a88067e008fda09bab8c25cf2a2add163f0e.tar.bz2
dotfiles-b094a88067e008fda09bab8c25cf2a2add163f0e.zip
(Shell)~zshrc: added bind keys to make using vim mode nicer
-rw-r--r--Shell/.zshrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/Shell/.zshrc b/Shell/.zshrc
index 13fbe8e..22349a2 100644
--- a/Shell/.zshrc
+++ b/Shell/.zshrc
@@ -91,14 +91,18 @@ bindkey -v
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
+bindkey "^[[Z" forward-char
# Menu
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'j' vi-up-line-or-history
bindkey -M menuselect 'k' vi-down-line-or-history
bindkey -M menuselect 'l' vi-forward-char
+bindkey -a 'k' history-substring-search-up
+bindkey -a 'j' history-substring-search-down
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
-bindkey '^l' clear
+bindkey '^P' history-substring-search-up
+bindkey '^N' history-substring-search-down
# Cursor
function zle-keymap-select {
@@ -127,8 +131,6 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
-. $HOME/.cargo/env
-
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/oreo/.sdkman"
[[ -s "/home/oreo/.sdkman/bin/sdkman-init.sh" ]] && source "/home/oreo/.sdkman/bin/sdkman-init.sh"