# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 setopt appendhistory notify bindkey -v # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/home/c00i90wn/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall # load colors autoload colors zsh/terminfo if [[ "$terminfo[colors]" -ge 8 ]]; then colors fi # powerful globbing setopt extendedglob #alias alias ls='ls -lh --color=auto' alias dir="ls" alias md='mkdir' alias rd='rm -r' alias ..='cd ..' alias ...='cd ../..' # mapping for arrow keys bindkey "\e[A" history-search-backward bindkey "\e[B" history-search-forward # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word bindkey "\e[5C" forward-word bindkey "\e[5D" backward-word bindkey "\e\e[C" forward-word bindkey "\e\e[D" backward-word # allow the use of the Home/End keys bindkey "\e[1~": beginning-of-line bindkey "\e[4~": end-of-line # allow the use of the Delete/Insert keys bindkey "\e[3~": delete-char bindkey "\e[2~": quoted-insert case $TERM in xterm*) precmd(){ local UC=$fg_bold[black] # user's color [ $UID -eq "0" ] && UC=$fg_bold[red] # root's color PROMPT="$fg_bold[blue]%n$UC@$fg_bold[blue]%m %~$UC\$ $reset_color" print -Pn "\e]0;%n@%m: %~\a" } preexec(){ print -Pn "\e]0;$1\a" } ;; *) precmd(){ PROMPT="%n@%m: %~\$" } ;; esac