summaryrefslogtreecommitdiff
path: root/shells/.config/zsh/zshrc
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-09-05 22:39:18 +0100
committerNaz <ndpm13@ch-naseem.com>2025-09-06 12:17:49 +0100
commit8f0048fde624e304203552d5ebef92ca6f30d618 (patch)
tree63464a134451f314dedc21712157af70611138b6 /shells/.config/zsh/zshrc
✨feat: add shells configuration files.
Diffstat (limited to 'shells/.config/zsh/zshrc')
-rw-r--r--shells/.config/zsh/zshrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/shells/.config/zsh/zshrc b/shells/.config/zsh/zshrc
new file mode 100644
index 0000000..833aadf
--- /dev/null
+++ b/shells/.config/zsh/zshrc
@@ -0,0 +1,45 @@
+# Common configs
+source $HOME/.config/shells/shellsrc
+
+# Syntax highlighting
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+
+# Colors settings
+autoload -U colors && colors
+
+# Completion
+autoload -U compinit
+zstyle ':completion:*' menu select
+zmodload zsh/complist
+compinit
+_comp_options+=(globdots)
+
+bindkey -M menuselect 'h' vi-backward-char
+bindkey -M menuselect 'k' vi-up-line-or-history
+bindkey -M menuselect 'l' vi-forward-char
+bindkey -M menuselect 'j' vi-down-line-or-history
+bindkey -v '^?' backward-delete-char
+
+# Vi mode
+bindkey -v
+
+# Key bindings
+bindkey -s '^o' 'lf\n'
+bindkey -s '^v' 'v\n'
+
+# Fix Cursor Shape After Using Neovim
+zle-line-init() {
+ echo -e -n "\x1b[\x34 q"
+}
+zle -N zle-line-init
+echo -e -n "\x1b[\x34 q"
+preexec() { echo -e -n "\x1b[\x34 q" ;}
+
+# Eval Zoxide
+eval "$(zoxide init zsh)"
+
+# Eval FZF
+source <(fzf --zsh)
+
+# Prompt
+eval "$(starship init zsh)"