From b094a88067e008fda09bab8c25cf2a2add163f0e Mon Sep 17 00:00:00 2001
From: Aryadev Chavali <aryadev@aryadevchavali.com>
Date: Mon, 19 Aug 2024 16:31:45 +0100
Subject: (Shell)~zshrc: added bind keys to make using vim mode nicer

---
 Shell/.zshrc | 8 +++++---
 1 file 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"
-- 
cgit v1.2.3-13-gbd6f