From 8f0048fde624e304203552d5ebef92ca6f30d618 Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 5 Sep 2025 22:39:18 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20add=20shells=20configuration=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shells/.config/zsh/zshrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 shells/.config/zsh/zshrc (limited to 'shells/.config/zsh') 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)" -- cgit v1.2.3