dotfiles/.zshrc

68 lines
1.5 KiB
Bash
Raw Normal View History

2021-04-20 01:11:01 +02:00
export ZDOTDIR="$HOME/.znap"
2019-10-20 16:48:00 +02:00
2021-04-20 01:11:01 +02:00
ZNAPDIR="$ZDOTDIR/zsh-snap"
ZNAP_ZSH="$ZNAPDIR/znap.zsh"
ZNAP_LOG="$ADOTDIR/antigen.log"
ENABLE_CORRECTION="true"
2019-10-20 17:47:29 +02:00
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
HISTSIZE=1000000
SAVEHIST=$HISTSIZE
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt COMPLETE_ALIASES
2021-04-20 01:11:01 +02:00
if [[ -a $ZNAP_ZSH ]]; then
ZSH_AUTOSUGGEST_USE_ASYNC="true"
ZSH_AUTOSUGGEST_STRATEGY=(history)
2020-01-29 20:39:33 +01:00
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=5
2021-04-20 01:11:01 +02:00
ZSH_HIGHLIGHT_HIGHLIGHTERS=( main brackets )
MODE_CURSOR_DEFAULT="white blinking bar"
MODE_CURSOR_VICMD="white steady block"
MODE_CURSOR_VIINS="white blinking bar"
MODE_CURSOR_SEARCH="cyan steady underline"
MODE_CURSOR_REPLACE="red steady underline"
MODE_CURSOR_VISUAL="white steady block"
2021-04-20 01:11:01 +02:00
KEYTIMEOUT=5
source $ZNAP_ZSH
znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance,colored-man-pages,colorzie,command-not-found,history}
znap prompt dustvoice/dustvoice-zsh-theme
2021-04-20 01:11:01 +02:00
znap source zsh-users/zsh-completions
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting
znap source zsh-users/zsh-history-substring-search
znap source softmoth/zsh-vim-mode
bindkey -M vicmd '^K' history-substring-search-up
bindkey -M vicmd '^J' history-substring-search-down
else
PS1=$'%b%n@%M %~
%(!.#.$) '
fi
2021-03-29 09:38:12 +02:00
2021-03-29 11:08:51 +02:00
if [ -x "$(command -v zoxide)" ]; then
2021-03-29 09:38:12 +02:00
eval "$(zoxide init zsh)"
fi
alias ls='ls --color=tty'
alias la='ls -lah'
alias ll='ls -lh'
alias lsa='ls -a'