Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- autoload -Uz colors
- colors
- setopt histignorealldups sharehistory
- # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
- HISTSIZE=1000
- SAVEHIST=1000
- HISTFILE=~/.zsh_history
- # Use modern completion system
- autoload -Uz compinit
- eval "$(dircolors -b)"
- zstyle ':completion:*' menu select
- zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
- zstyle ':completion:*' verbose true
- zstyle ':completion:*' completer _expand _complete _correct _approximate
- zstyle ':completion:*:descriptions' format "%2F%B--- %d%b%f"
- zstyle ':completion:*:messages' format '%d'
- zstyle ':completion:*:warnings' format "%1F%B--- No matches found%b%f"
- zstyle ':completion:*:corrections' format '%214F%B--- %d%b%f'
- zstyle ':completion:*' group-name ''
- zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
- zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
- compinit
- alias sudo='sudo '
- # Load version contron information
- autoload -Uz vcs_info
- precmd_vcs_info() { vcs_info }
- precmd_functions+=( precmd_vcs_info )
- setopt prompt_subst
- zstyle ':vcs_info:git:*' formats ' %b'
- # Make ls display colors
- alias ls='ls --color=auto'
- # Clear .zsh_history
- alias clear-history='rm ~/.zsh_history'
- # Print neofetch for mere aesthetics
- neofetch
- # Prompt config
- if [[ $EUID -ne 0 ]]; then
- PROMPT='%B%203F %n%f %120F %m%f %228F %1~%f%159F${vcs_info_msg_0_}%f %b '
- else
- PROMPT='%B%214F[%n@%m %1~]# %f%b'
- fi
- # Fancy features - comment out to speed up load time
- ## Load zsh-autosuggestions
- source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
- ## Load zsh-syntax-highlighting
- source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement