diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2024-02-08 13:02:03 +0200 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2024-02-08 13:02:03 +0200 |
commit | e41164cc452089c01f6764458ceb0127ab40c928 (patch) | |
tree | 7b61822b723f14dc694fb8e54bce8706543dde3f /zsh/zshrc | |
parent | 2c77874f1f6b23e947f040c187a4df65f147f462 (diff) |
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
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 38 |
1 files changed, 31 insertions, 7 deletions
@@ -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" |