52 lines
1.9 KiB
Bash
52 lines
1.9 KiB
Bash
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
|
|
source ${ZDOTDIR}/powerlevel10k/powerlevel10k.zsh-theme
|
|
[[ ! -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
|
|
|
|
source ${ZDOTDIR}/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
|
|
|
source ${ZDOTDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
|
ZSH_AUTOSUGGEST_USE_ASYNC=true
|