dotfiles/zsh/zshrc

29 lines
1009 B
Bash
Raw Normal View History

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