dotfiles/.zshrc

69 lines
1.9 KiB
Bash
Raw Normal View History

# 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"
# 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
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
2019-10-20 17:47:29 +02: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
setopt COMPLETE_ALIASES
2020-11-30 16:13:51 +01:00
if [[ -a $ANTIGEN_ZSH && -a $ANTIGENRC ]]; then
ZSH_AUTOSUGGEST_USE_ASYNC="true"
ZSH_AUTOSUGGEST_STRATEGY=(history)
2020-01-29 20:39:33 +01:00
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=5
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"
2020-11-30 16:13:51 +01:00
source $ANTIGEN_ZSH
2020-11-30 16:13:51 +01:00
antigen init $ANTIGENRC
bindkey -M vicmd '^K' history-substring-search-up
bindkey -M vicmd '^J' history-substring-search-down
2020-03-21 14:46:50 +01:00
KEYTIMEOUT=5
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'