知乎专栏 |
http://ohmyz.sh/
Oh My ZSH 是z shell命令主题
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
neo@netkiller:~$ cat .zshrc # Created by newuser for 4.3.9 PROMPT='%n@%M:%~$ ' # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then 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 la='ls -A' alias l='ls -CF' # Home/End/Del key bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line bindkey "\e[3~" delete-char
$ PROMPT='%n@%M:%~$ ' neo@netkiller:~$
autoload colors; colors export PS1="%B[%{$fg[red]%}%n%{$reset_color%}%b@%B%{$fg[cyan]%}%m%b%{$reset_color%}:%~%B]%b "
[neo@netkiller:~/.oh-my-zsh/themes]
# enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then 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 la='ls -A' alias l='ls -CF'