2020-01-23 18:44:10 +01:00
|
|
|
# Path to your oh-my-zsh installation.
|
2020-11-30 16:13:51 +01:00
|
|
|
export ADOTDIR="$HOME/.antigen"
|
2019-10-20 16:48:00 +02:00
|
|
|
|
2020-11-30 16:13:51 +01:00
|
|
|
ANTIGEN_ZSH="$ADOTDIR/antigen.zsh"
|
|
|
|
ANTIGENRC="$HOME/.antigenrc"
|
|
|
|
ANTIGEN_LOG="$ADOTDIR/antigen.log"
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2020-01-23 18:44:10 +01:00
|
|
|
# Set name of the theme to load --- if set to "random", it will
|
|
|
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
|
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
|
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
|
|
ZSH_THEME="dustvoice"
|
2019-10-20 16:48:00 +02:00
|
|
|
|
2020-01-23 18:44:10 +01:00
|
|
|
# Uncomment the following line to enable command auto-correction.
|
|
|
|
ENABLE_CORRECTION="true"
|
2019-10-20 17:47:29 +02:00
|
|
|
|
2020-01-23 18:44:10 +01:00
|
|
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
# Uncomment the following line if you want to change the command execution time
|
|
|
|
# stamp shown in the history command output.
|
|
|
|
# You can set one of the optional three formats:
|
|
|
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
|
|
# or set a custom format using the strftime function format specifications,
|
|
|
|
# see 'man strftime' for details.
|
|
|
|
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
|
|
|
|
2020-11-30 16:13:51 +01:00
|
|
|
if [[ -a $ANTIGEN_ZSH && -a $ANTIGENRC ]]; 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
|
|
|
|
|
|
|
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
|
|
|
|
2020-11-30 16:13:51 +01:00
|
|
|
source $ANTIGEN_ZSH
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2020-11-30 16:13:51 +01:00
|
|
|
antigen init $ANTIGENRC
|
2020-01-24 01:31:55 +01:00
|
|
|
|
2021-03-29 14:49:10 +02:00
|
|
|
function zvm_after_lazy_keybindings() {
|
|
|
|
bindkey -M vicmd '^K' history-substring-search-up
|
|
|
|
bindkey -M vicmd '^J' history-substring-search-down
|
|
|
|
}
|
|
|
|
ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK
|
|
|
|
ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM
|
|
|
|
ZVM_VISUAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK
|
|
|
|
ZVM_VISUAL_LINE_MODE_CURSOR=$ZVM_CURSOR_BLOCK
|
|
|
|
ZVM_OPPEND_MODE_CURSOR=$ZVM_CURSOR_BLINKING_UNDERLINE
|
|
|
|
|
|
|
|
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
|
|
|
|
|
|
|
|
function zvm_after_select_vi_mode() {
|
|
|
|
case $ZVM_MODE in
|
|
|
|
$ZVM_MODE_NORMAL)
|
|
|
|
RPROMPT=$'%{$fg[blue]%}[NORMAL]%{$reset_color%}'
|
|
|
|
;;
|
|
|
|
$ZVM_MODE_INSERT)
|
|
|
|
RPROMPT=$''
|
|
|
|
;;
|
|
|
|
$ZVM_MODE_VISUAL)
|
|
|
|
RPROMPT=$'%{$fg[yellow]%}[VISUAL]%{$reset_color%}'
|
|
|
|
;;
|
|
|
|
$ZVM_MODE_NORMAL)
|
|
|
|
RPROMPT=$'%{$fg[yellow]%}[V-LINE]%{$reset_color%}'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2020-03-21 14:46:50 +01:00
|
|
|
|
|
|
|
KEYTIMEOUT=5
|
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'
|