2019-12-18 18:31:56 +00:00
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
|
|
|
setopt appendhistory autocd extendedglob nomatch notify hist_ignore_all_dups hist_ignore_space nobeep
|
|
|
|
|
|
|
|
if [ -z "$SSH_CONNECTION" ] && ! [ -z "$DISPLAY" ]; then
|
2019-12-31 21:02:41 +00:00
|
|
|
source ${ZDOTDIR}/powerlevel10k/powerlevel10k.zsh-theme
|
2019-12-18 18:31:56 +00:00
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
|
|
|
|
os_icon
|
|
|
|
time
|
|
|
|
ram
|
|
|
|
load
|
|
|
|
battery
|
|
|
|
ssh
|
|
|
|
root_indicator
|
|
|
|
newline
|
|
|
|
vi_mode
|
|
|
|
status
|
|
|
|
dir
|
|
|
|
dir_writable
|
|
|
|
)
|
|
|
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
|
|
|
command_execution_time # duration of the last command
|
|
|
|
background_jobs # presence of background jobs
|
|
|
|
vcs
|
|
|
|
direnv # direnv status (https://direnv.net/)
|
|
|
|
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
|
|
|
|
anaconda # conda environment (https://conda.io/)
|
|
|
|
pyenv # python environment (https://github.com/pyenv/pyenv)
|
|
|
|
nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
|
|
|
|
nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
|
|
|
|
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
|
|
|
|
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
|
|
|
rvm # ruby version from rvm (https://rvm.io)
|
|
|
|
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
|
|
|
public_ip # public IP address
|
|
|
|
)
|
|
|
|
POWERLEVEL9K_MODE=nerdfont-complete
|
|
|
|
else
|
|
|
|
export TERM="xterm";
|
|
|
|
autoload -Uz promptinit
|
|
|
|
promptinit
|
|
|
|
prompt clint
|
|
|
|
fi
|
|
|
|
|
2019-12-31 21:02:41 +00:00
|
|
|
source ${ZDOTDIR}/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
2019-12-18 18:31:56 +00:00
|
|
|
|
2019-12-31 21:02:41 +00:00
|
|
|
source ${ZDOTDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh
|
2019-12-18 18:31:56 +00:00
|
|
|
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|
|
|
ZSH_AUTOSUGGEST_USE_ASYNC=true
|