Skip to content

Instantly share code, notes, and snippets.

@iori-yja
Created January 7, 2012 19:57
Show Gist options
  • Save iori-yja/1575815 to your computer and use it in GitHub Desktop.
Save iori-yja/1575815 to your computer and use it in GitHub Desktop.
zsh configuration
# Created by newuser for 4.3.10
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
bindkey -v
setopt auto_cd
setopt auto_pushd
setopt list_packed
case ${UID} in
0)
RPROMPT="%{%}%/%{%} "
PROMPT="%T%{%}%{%}%%%{%} "
PROMPT2="%{%}%_%%%{%} "
SPROMPT="%{%}%r is correct? [n,y,a,e]:%{%} "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{%}${HOST%%.*} ${PROMPT}"
;;
*)
RPROMPT="%/%{%} "
PROMPT="%T%{%}%{%}%%%{%} "
PROMPT2="%{%}%_%%%{%} "
SPROMPT="%{%}%r is correct? [n,y,a,e]:%{%} "
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] &&
PROMPT="%{%}${HOST%%.*} ${PROMPT}"
;;
esac
setopt nolistbeep
setopt correct
autoload -U compinit
compinit
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -l'
alias lla='ls -al'
alias lat='ls -tal'
alias lt='ls -tl'
alias la='ls -A'
alias l='ls -CF'
##Gentoo Prefix Path and ARM compiler
EPREFIX="$HOME/Gentoo"
PATH=/bin:/opt/CodeSourcery/bin/:$PATH:~/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment