dotfiles/.zshrc

77 lines
1.8 KiB
Bash
Raw Normal View History

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"
ENABLE_CORRECTION="true"
2019-10-20 17:47:29 +02:00
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
2021-04-20 01:30:50 +02:00
SAVEHIST=99999999
HISTSIZE=999999999
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)
#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}
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
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
if [ -x "$(command -v starship)" ]; then
znap eval starship 'starship init zsh --print-full-init'
else
znap prompt dustvoice/dustvoice-zsh-theme
fi
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'