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-15 14:38:08 +01:00
|
|
|
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
|
2020-01-10 23:06:53 +01:00
|
|
|
|
2020-01-15 14:27:20 +01:00
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
2020-01-27 11:42:06 +01:00
|
|
|
#function zsh_directory_name() {
|
|
|
|
# emulate -L zsh
|
|
|
|
# [[ $1 == d ]] || return
|
|
|
|
# while [[ $2 != / ]]; do
|
|
|
|
# if [[ -e $2/.git ]]; then
|
|
|
|
# typeset -ga reply=(${2:t} $#2)
|
|
|
|
# return
|
|
|
|
# fi
|
|
|
|
# 2=${2:h}
|
|
|
|
# done
|
|
|
|
# return 1
|
|
|
|
#}
|
2020-01-10 15:12:24 +01:00
|
|
|
[ -e ~/.zshrc.local ] && source ~/.zshrc.local
|