2020-04-05 22:18:15 +00:00
|
|
|
typeset -g HISTFILE=~/.histfile
|
|
|
|
typeset -g HISTSIZE=1000
|
|
|
|
typeset -g SAVEHIST=1000
|
|
|
|
typeset -g ZLE_RPROMPT_INDENT=0
|
2020-04-15 21:48:39 +00:00
|
|
|
setopt appendhistory autocd auto_pushd correct_all extendedglob nomatch notify hist_ignore_all_dups hist_ignore_space nobeep
|
2019-12-18 18:31:56 +00:00
|
|
|
|
2020-04-05 22:18:15 +00:00
|
|
|
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
|
2020-04-16 01:36:10 +00:00
|
|
|
typeset -g POWERLEVEL9K_MODE='nerdfont-fontconfig'
|
2019-12-18 18:31:56 +00:00
|
|
|
if [ -z "$SSH_CONNECTION" ] && ! [ -z "$DISPLAY" ]; then
|
2020-04-05 22:18:15 +00:00
|
|
|
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
|
2020-04-14 18:09:10 +00:00
|
|
|
covid_19
|
2020-04-14 18:54:54 +00:00
|
|
|
public_ip
|
|
|
|
newline
|
|
|
|
docker_host
|
2020-04-05 22:18:15 +00:00
|
|
|
vcs
|
|
|
|
virtualenv
|
|
|
|
pyenv
|
|
|
|
)
|
2019-12-18 18:31:56 +00:00
|
|
|
else
|
2020-04-05 22:18:15 +00:00
|
|
|
export TERM="xterm";
|
|
|
|
autoload -Uz promptinit
|
|
|
|
promptinit
|
|
|
|
prompt clint
|
2019-12-18 18:31:56 +00:00
|
|
|
fi
|
2020-04-05 22:18:15 +00:00
|
|
|
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=true
|
|
|
|
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
|
|
|
|
typeset -g POWERLEVEL9K_USE_CACHE=true
|
2019-12-18 18:31:56 +00:00
|
|
|
|
2020-04-07 13:45:08 +00:00
|
|
|
source ${ZDOTDIR}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
2020-04-05 22:18:15 +00:00
|
|
|
typeset -g ZSH_HIGHLIGHT_HIGHLIGHTERS=(
|
|
|
|
main
|
|
|
|
brackets
|
|
|
|
pattern
|
|
|
|
cursor
|
|
|
|
)
|
2019-12-18 18:31:56 +00:00
|
|
|
|
2019-12-31 21:02:41 +00:00
|
|
|
source ${ZDOTDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh
|
2020-04-05 22:18:15 +00:00
|
|
|
typeset -g ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|
|
|
typeset -g ZSH_AUTOSUGGEST_USE_ASYNC=true
|