chsh -s /usr/bin/zsh
November 16, 2008
I changed my shell from bash to zsh this morning.
jrblevin@syd:~$ chsh
Password:
Changing the login shell for jrblevin
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]: /usr/bin/zsh
There are a lot of example .zshrc on dotfiles.org. Here are some of the settings from mine:
# history
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=1000
# Emacs keybindings (-v for vi)
bindkey -e
# settings
setopt correct_all # correct misspelled commands
setopt autocd # cd by typing directory name
setopt hist_ignore_dups # ignore repeated commands
# programs
export EDITOR=vi # default editor
# aliases
if ls -F --color=auto >&/dev/null; then
eval `dircolors -b`
alias ls="ls --color=auto -F"
else
alias ls="ls -F"
fi
alias grep='grep --color=auto'
# tab completion
autoload -U compinit
compinit
# colorful completion listings
zmodload -i zsh/complist
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}