2023-03-29 16:15:06 +02:00
|
|
|
# vim:set ft=zsh
|
2023-03-30 14:47:43 +02:00
|
|
|
[ ! -f $XDG_CACHE_HOME/zsh/history ] && mkdir -p $XDG_CACHE_HOME/zsh && touch $XDG_CACHE_HOME/zsh/history
|
|
|
|
|
2023-03-29 16:15:06 +02:00
|
|
|
setopt HIST_IGNORE_ALL_DUPS HIST_REDUCE_BLANKS HIST_VERIFY BANG_HIST interactive_comments autocd noflowcontrol longlistjobs nonomatch notify hash_list_all share_history histignorespace
|
|
|
|
|
|
|
|
autoload -U colors && colors
|
|
|
|
autoload edit-command-line && zle -N edit-command-line
|
|
|
|
autoload -U add-zsh-hook
|
|
|
|
autoload -U compinit
|
|
|
|
autoload -Uz edit-command-line
|
|
|
|
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
zmodload zsh/complist
|
|
|
|
compinit
|
|
|
|
_comp_options+=(globdots)
|
|
|
|
|
|
|
|
zle_highlight+=(paste:none)
|
|
|
|
|
|
|
|
function write_info(){
|
|
|
|
echo -n "${VIRTUAL_ENV}" > "/tmp/current_venv-$$"
|
|
|
|
}
|
|
|
|
add-zsh-hook precmd write_info
|
|
|
|
|
|
|
|
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
|
|
|
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|