dotfiles/zsh/zshrc
2020-01-11 01:20:44 +01:00

29 lines
1009 B
Bash

autoload -U compinit && compinit
autoload -U promptinit && promptinit
setopt correct_all
zstyle ':completion:*' menu select
if [[ "$OSTYPE" == (darwin|freebsd)* ]]; then
alias ls='ls -G'
elif [[ "$OSTYPE" == linux* ]]; then
alias ls='ls --color=tty'
fi
alias ll='ls -lh'
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.dotfiles/zsh/k8s.zsh
SLIMLINE_RIGHT_PROMPT_SECTIONS="execution_time git virtualenv aws_profile k8s_context"
SLIMLINE_USER_HOST_INFO_FORMAT="%F{green}|user|%F{white}@%F{cyan}|host|%f"
SLIMLINE_USER_HOST_INFO_ROOT_FORMAT="%F{red}|user|%F{white}@%F{cyan}|host|%f"
SLIMLINE_VIRTUALENV_FORMAT="[venv:%F{blue}|basename|%f]"
SLIMLINE_AWS_PROFILE_FORMAT="[aws:%F{blue}|profile|%f]"
SLIMLINE_SYMBOL_WORKING_FORMAT="%F{red}➜%f"
SLIMLINE_SYMBOL_READY_FORMAT="%F{243}➜%f"
SLIMLINE_MAX_EXEC_TIME=2
source ~/.zsh/themes/slimline/slimline.zsh
[ -e ~/.zshrc.local ] && source ~/.zshrc.local