Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################
- # #
- # #
- # Zshrc #
- # #
- # #
- ##################################
- zstyle :compinstall filename '/home/user/.zshrc'
- autoload -Uz compinit
- compinit
- #Source
- source ~/.zsh_plugins.sh
- #Enable highlighting
- zstyle ':completion:*' menu select=1
- #Automatically change directory if a directory is entered
- setopt autocd
- setopt extendedglob
- #Case-insensitive globbing
- zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
- #History
- HISTFILE=~/.zsh_history
- HISTSIZE=1000
- SAVEHIST=$HISTSIZE
- #Prompt
- setopt PROMPT_SUBST
- prompt_status_smiley() {
- [[ $? -ne 0 ]] && echo '%F{1}:(%f'
- }
- PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;34m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}%!%{\e[0;34m%}%B]%b%{\e[0m%}
- %{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]%{\e[0m%}%b '
- RPROMPT='$(prompt_status_smiley)'
- PS2=$' \e[0;34m%}%B>%{\e[0m%}%b'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement