2023-06-12 11:04:23 +02:00
|
|
|
[ ! -f $XDG_DATA_HOME/zsh/history ] && mkdir -p $XDG_DATA_HOME/zsh && touch $XDG_DATA_HOME/zsh/history
|
2023-03-30 14:47:43 +02:00
|
|
|
|
2023-08-04 13:58:53 +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 PROMPT_SUBST
|
2023-03-29 16:15:06 +02:00
|
|
|
|
2023-04-04 17:44:51 +02:00
|
|
|
autoload -Uz colors && colors
|
|
|
|
autoload -Uz edit-command-line && zle -N edit-command-line
|
|
|
|
autoload -Uz add-zsh-hook
|
|
|
|
autoload -Uz compinit
|
2023-03-29 16:15:06 +02:00
|
|
|
autoload -Uz edit-command-line
|
|
|
|
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
zmodload zsh/complist
|
|
|
|
compinit
|
|
|
|
_comp_options+=(globdots)
|
|
|
|
|
|
|
|
zle_highlight+=(paste:none)
|
|
|
|
|
2023-08-04 13:58:53 +02:00
|
|
|
PROMPT='%B%F{blue}%n%F{cyan}@%F{blue}%m %F{magenta}[%f%3~%F{magenta}] %(?.%F{green}.%F{red})»%f%b '
|
|
|
|
RPROMPT='%(?..%F{red}%?) $(venv_prompt)'
|
2023-03-29 16:15:06 +02:00
|
|
|
|
2023-06-14 18:12:13 +02:00
|
|
|
# Set the titlestring
|
|
|
|
add-zsh-hook preexec write_title_cmd
|
|
|
|
add-zsh-hook precmd write_title_wd
|
|
|
|
|
|
|
|
# add-zsh-hook preexec reset_beam
|