From e41164cc452089c01f6764458ceb0127ab40c928 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:02:03 +0200 Subject: Overall better functionality + new scripts. Changes to be committed: new file: vpn modified: X11/xinit modified: zsh/aliases modified: zsh/zshrc modified: zsh/env modified: color-picker modified: keybinds modified: nvpower modified: pmenu modified: Vencord/settings/settings.json modified: zathura/zathurarc modified: ranger/rifle.conf modified: ranger/rc.conf modified: btop/btop.conf --- zsh/zshrc | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index cc79c66..660286b 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,27 +1,51 @@ zstyle ':completion:*' menu select zstyle :compinstall filename '/home/alphara/.zshrc' +autoload -Uz compinit +zmodload zsh/complist + +compinit +_comp_options+=(globdots) + HISTFILE=~/.histfile HISTSIZE=1000000 SAVEHIST=1000000 -setopt extendedglob +setopt appendhistory hist_ignore_dups extendedglob autocd + unsetopt beep bindkey -v +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 + source $HOME/.config/zsh/aliases source $HOME/.config/zsh/env -autoload -Uz compinit -zmodload zsh/complist - -PROMPT='%B%F{3}%n@%m %~>%b%f ' autoload -Uz promptinit PROMPT_EOL_MARK="" - promptinit -compinit + +PROMPT='%B%F{3}%n@%m %~>%b%f ' + +source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh + +############################################ + +# vi mode + +function zle-keymap-select () { + case $KEYMAP in + vicmd) echo -ne '\e[1 q';; # beam + viins|main) echo -ne '\e[5 q';; # block + esac +} +zle -N zle-keymap-select + +############################################ export PYENV_ROOT="$HOME/.pyenv" command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" -- cgit v1.2.3