mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-22 01:37:14 +01:00
zsh updates
This commit is contained in:
parent
bfe7d40090
commit
f06e202973
33
zshrc
33
zshrc
@ -1,17 +1,25 @@
|
|||||||
# zmodload zsh/zprof
|
# zmodload zsh/zprof
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prompt
|
||||||
# https://github.com/sindresorhus/pure
|
# https://github.com/sindresorhus/pure
|
||||||
|
#
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
PURE_GIT_DOWN_ARROW=↓
|
PURE_GIT_DOWN_ARROW=↓
|
||||||
PURE_GIT_UP_ARROW=↑
|
PURE_GIT_UP_ARROW=↑
|
||||||
|
# PURE_PROMPT_SYMBOL=🦑
|
||||||
prompt pure
|
prompt pure
|
||||||
|
zstyle :prompt:pure:git:stash show yes
|
||||||
|
export CLICOLOR=1
|
||||||
|
|
||||||
CASE_SENSITIVE="true"
|
CASE_SENSITIVE="true"
|
||||||
DISABLE_UPDATE_PROMPT="true"
|
DISABLE_UPDATE_PROMPT="true"
|
||||||
DISABLE_AUTO_TITLE="true"
|
DISABLE_AUTO_TITLE="true"
|
||||||
ENABLE_CORRECTION="true"
|
ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
#
|
||||||
# History
|
# History
|
||||||
|
#
|
||||||
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
|
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
|
||||||
HIST_STAMPS="yyyy-mm-dd"
|
HIST_STAMPS="yyyy-mm-dd"
|
||||||
HISTSIZE=50000
|
HISTSIZE=50000
|
||||||
@ -23,13 +31,19 @@ setopt hist_ignore_space
|
|||||||
setopt inc_append_history
|
setopt inc_append_history
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
|
||||||
|
#
|
||||||
# Changing directories
|
# Changing directories
|
||||||
|
#
|
||||||
setopt auto_cd
|
setopt auto_cd
|
||||||
setopt auto_pushd
|
setopt auto_pushd
|
||||||
unsetopt pushd_ignore_dups
|
unsetopt pushd_ignore_dups
|
||||||
setopt pushdminus
|
setopt pushdminus
|
||||||
|
|
||||||
|
#
|
||||||
# Completion
|
# Completion
|
||||||
|
#
|
||||||
|
autoload -Uz compinit; compinit
|
||||||
|
|
||||||
setopt auto_menu
|
setopt auto_menu
|
||||||
setopt always_to_end
|
setopt always_to_end
|
||||||
setopt complete_in_word
|
setopt complete_in_word
|
||||||
@ -56,20 +70,11 @@ if [[ $#h -gt 0 ]]; then
|
|||||||
zstyle ':completion:*:(ssh|scp|rsync|slogin):*' hosts $h
|
zstyle ':completion:*:(ssh|scp|rsync|slogin):*' hosts $h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://gist.github.com/ctechols/ca1035271ad134841284#gistcomment-2767420
|
|
||||||
autoload -Uz compinit
|
|
||||||
if [[ -n ~/.zcompdump(#qN.mh+24) ]]; then
|
|
||||||
compinit
|
|
||||||
touch ~/.zcompdump
|
|
||||||
else
|
|
||||||
compinit -C
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Other
|
|
||||||
setopt prompt_subst
|
|
||||||
|
|
||||||
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source <(kubectl completion zsh)
|
# source <(kubectl completion zsh)
|
||||||
|
|
||||||
# zprof
|
#
|
||||||
|
# Other
|
||||||
|
#
|
||||||
|
setopt prompt_subst
|
||||||
|
Loading…
Reference in New Issue
Block a user