feat: zsh zoxide, bat

This commit is contained in:
eneller
2024-05-18 10:55:37 +02:00
parent 52a62c6051
commit fbca5a12b3

5
.zshrc
View File

@@ -8,6 +8,10 @@ fi
source ~/.config/shell/alias.sh source ~/.config/shell/alias.sh
export EDITOR=nvim export EDITOR=nvim
export VISUAL=$EDITOR export VISUAL=$EDITOR
# set BAT as man pager
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT="-c"
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
@@ -18,6 +22,7 @@ setopt nobeep
autoload -Uz compinit # load completion autoload -Uz compinit # load completion
compinit compinit
_comp_options+=(globdots) # Include hidden files. _comp_options+=(globdots) # Include hidden files.
eval "$(zoxide init zsh)"
setopt autocd # allow cd by only entering directory without cd command setopt autocd # allow cd by only entering directory without cd command
setopt extendedglob # Extended globbing. Allows using regular expressions with * setopt extendedglob # Extended globbing. Allows using regular expressions with *
setopt correct # Auto correct mistakes setopt correct # Auto correct mistakes