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"
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2020-01-23 18:44:10 +01:00
|
|
|
ENABLE_CORRECTION="true"
|
2019-10-20 17:47:29 +02:00
|
|
|
|
2020-01-23 18:44:10 +01: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
|
2020-01-23 19:45:46 +01:00
|
|
|
setopt COMPLETE_ALIASES
|
2020-01-23 18:44:10 +01:00
|
|
|
|
2021-04-20 01:11:01 +02:00
|
|
|
if [[ -a $ZNAP_ZSH ]]; then
|
2020-01-24 01:31:55 +01:00
|
|
|
ZSH_AUTOSUGGEST_USE_ASYNC="true"
|
|
|
|
ZSH_AUTOSUGGEST_STRATEGY=(history)
|
2020-01-29 20:39:33 +01:00
|
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=5
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2021-04-20 01:11:01 +02:00
|
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=( main brackets )
|
|
|
|
|
2020-01-24 01:31:55 +01:00
|
|
|
MODE_CURSOR_DEFAULT="white blinking bar"
|
2020-09-10 21:48:37 +02:00
|
|
|
MODE_CURSOR_VICMD="white steady block"
|
2020-01-24 01:31:55 +01:00
|
|
|
MODE_CURSOR_VIINS="white blinking bar"
|
|
|
|
MODE_CURSOR_SEARCH="cyan steady underline"
|
|
|
|
MODE_CURSOR_REPLACE="red steady underline"
|
2020-09-12 15:41:14 +02:00
|
|
|
MODE_CURSOR_VISUAL="white steady block"
|
2020-01-24 01:31:55 +01:00
|
|
|
|
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
|
2020-01-24 01:31:55 +01:00
|
|
|
|
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
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2021-03-29 14:49:41 +02:00
|
|
|
bindkey -M vicmd '^K' history-substring-search-up
|
|
|
|
bindkey -M vicmd '^J' history-substring-search-down
|
2020-01-24 01:31:55 +01:00
|
|
|
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
|
2021-03-29 14:07:35 +02:00
|
|
|
|
|
|
|
alias ls='ls --color=tty'
|
|
|
|
alias la='ls -lah'
|
|
|
|
alias ll='ls -lh'
|
|
|
|
alias lsa='ls -a'
|