ZSHFiles/preferences.zsh

61 lines
1.4 KiB
Bash
Raw Normal View History

typeset -g HISTFILE=~/.histfile
typeset -g HISTSIZE=1000
typeset -g SAVEHIST=1000
typeset -g ZLE_RPROMPT_INDENT=0
setopt appendhistory autocd auto_pushd correct_all extendedglob nomatch notify hist_ignore_all_dups hist_ignore_space nobeep
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
2020-04-16 01:36:10 +00:00
typeset -g POWERLEVEL9K_MODE='nerdfont-fontconfig'
if [ -z "$SSH_CONNECTION" ] && ! [ -z "$DISPLAY" ]; then
source ${ZDOTDIR}/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
os_icon
time
ram
load
battery
disk_usage
ssh
root_indicator
newline
vi_mode
status
dir
dir_writable
)
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
command_execution_time
background_jobs
vim_shell
new_mail
covid_19
public_ip
newline
docker_host
vcs
virtualenv
pyenv
)
else
export TERM="xterm";
autoload -Uz promptinit
promptinit
prompt clint
fi
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=true
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
typeset -g POWERLEVEL9K_USE_CACHE=true
2020-04-07 13:45:08 +00:00
source ${ZDOTDIR}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
typeset -g ZSH_HIGHLIGHT_HIGHLIGHTERS=(
main
brackets
pattern
cursor
)
source ${ZDOTDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh
typeset -g ZSH_AUTOSUGGEST_STRATEGY=(history completion)
typeset -g ZSH_AUTOSUGGEST_USE_ASYNC=true