2021-05-16 16:15:39 +02:00
|
|
|
export ZNAPDOTDIR="$HOME/.znap"
|
2019-10-20 16:48:00 +02:00
|
|
|
|
2021-05-16 16:15:39 +02:00
|
|
|
ZNAPDIR="$ZNAPDOTDIR/zsh-snap"
|
2021-04-20 01:11:01 +02:00
|
|
|
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"
|
|
|
|
|
2021-04-20 01:30:50 +02:00
|
|
|
SAVEHIST=99999999
|
|
|
|
HISTSIZE=999999999
|
2020-01-23 18:44:10 +01:00
|
|
|
|
|
|
|
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)
|
2022-09-06 16:29:06 +02: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}
|
|
|
|
|
2021-04-20 01:30:50 +02:00
|
|
|
znap source marlonrichert/zsh-hist
|
|
|
|
|
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
|
2021-04-20 01:30:50 +02:00
|
|
|
|
|
|
|
bindkey -M vicmd '^H' push-line-or-edit
|
|
|
|
bindkey -M vicmd '^L' get-line
|
2022-09-06 16:29:06 +02:00
|
|
|
|
|
|
|
if [ -x "$(command -v starship)" ]; then
|
|
|
|
znap eval starship 'starship init zsh --print-full-init'
|
|
|
|
else
|
|
|
|
znap prompt dustvoice/dustvoice-zsh-theme
|
|
|
|
fi
|
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'
|