Files
madumlao-profile/skel/.zshrc

92 lines
3.0 KiB
Bash

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gentoo"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git per-directory-history zsh-autosuggestions zsh-syntax-highlighting)
# User configuration
source $ZSH/oh-my-zsh.sh
# setup colors
ZSH_HIGHLIGHT_STYLES[comment]=fg=cyan,bold
# interactive comments
setopt interactivecomments
# leave running jobs running
setopt NO_HUP
setopt NO_CHECK_JOBS
# command suggestions
[ -f "/etc/zsh_command_not_found" ] && source /etc/zsh_command_not_found
# rebuild autocompletion always
zstyle ":completion:*:commands" rehash 1
# wait ten seconds before agreeing to rm *
setopt RM_STAR_WAIT
# history options
SAVEHIST=$HISTSIZE
setopt BANG_HIST # Treat the '!' character specially during expansion.
setopt HIST_BEEP # Beep when accessing nonexistent history.
setopt HIST_LEX_WORDS # parse quotes when parsing history
setopt HIST_IGNORE_SPACE # dont save commands starting with space
# set GPG_TTY
if [ "$GPG_TTY" = "" ]; then
export GPG_TTY=$(tty)
fi
# override local settings with local shell files
emulate bash
[ -f "$HOME/.rc-local" ] && source "$HOME/.rc-local"
emulate zsh
[ -f "$HOME/.zshrc-local" ] && source "$HOME/.zshrc-local"
# Add return value to prompt if nonzero
PS1='%(!.%B%F{red}.%B%F{green}%n@)%m %F{blue}%(!.%1~.%~) ${vcs_info_msg_0_}%F{blue}%(?..%F{red}[%?] )%F{blue}%(!.#.$)%b%f '