config/zsh/zshrc

29 lines
779 B
Bash
Executable File

# Generic options
setopt NOMATCH
# Maybe?
# setopt PROMPT_BANG
# History
setopt BANG_HIST HIST_REDUCE_BLANKS
# Completion
setopt ALWAYS_TO_END MARK_DIRS
# Correction
setopt CORRECT
# Aliases
alias ls="ls --color=auto"
alias gcc="gcc -Wall"
alias catgirl="catgirl -u cr"
# Prompt
# Load colour module for marking up prompt
autoload -U colors && colors
# There appears to be an extra %B in the following line, but it is
# necessary. Without it, the ] from the jobs notifier fails to appear
# in boldface. I think that resetting the colours is also resetting
# all the character attributes.
export PS1="%(1j.%B[%{$fg[green]%}%j%{$reset_color%}%B]%b .)[%{$fg[red]%}%m%{$reset_color%}:%{$fg[blue]%}%3~%{$reset_color%}] %# "
export RPS1="%(?..%B%{$fg[red]%}%?%{$reset_color%}%b)"