config/zsh/zshrc

29 lines
779 B
Bash
Raw Normal View History

2020-08-19 12:00:21 +00:00
# Generic options
setopt NOMATCH
# Maybe?
# setopt PROMPT_BANG
# History
2020-08-22 20:04:21 +00:00
setopt BANG_HIST HIST_REDUCE_BLANKS
2020-08-19 12:00:21 +00:00
# Completion
setopt ALWAYS_TO_END MARK_DIRS
# Correction
setopt CORRECT
2020-08-22 20:04:21 +00:00
# Aliases
alias ls="ls --color=auto"
alias gcc="gcc -Wall"
alias catgirl="catgirl -u cr"
2020-08-28 12:09:31 +00:00
# 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%}] %# "
2020-08-28 12:09:31 +00:00
export RPS1="%(?..%B%{$fg[red]%}%?%{$reset_color%}%b)"