autoload -U compinit compinit zstyle ':completion:*:descriptions' format '%U%B%d%b%u' zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' setopt correct export HISTSIZE=2000 export HISTFILE="$HOME/.history" export SAVEHIST=$HISTSIZE setopt hist_ignore_all_dups setopt hist_ignore_space setopt autocd setopt extendedglob setopt prompt_subst autoload -Uz vcs_info zstyle ':vcs_info:git*' formats '[%b] ' bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word precmd() { vcs_info } if [ $UID -eq 0 ]; then local user_prompt=$'\U26A0\UFE0F'" %F{red}%n%f" else local user_prompt="%F{green}%n%f" fi export PS1='$user_prompt@%M %F{cyan}%2~%f ${vcs_info_msg_0_}%(?..%F{red}[%?]%f )%# ' alias l="ls -lah" alias ll="ls -lh" alias okular="setsid okular" export PATH="$HOME/bin:$PATH" export PATH="$HOME/.local/bin:$PATH" rh() { exec zsh } bz() { setsid "$@" &> /dev/null < /dev/null }