public
Description: My config files (aka dotfiles)
Homepage:
Clone URL: git://github.com/jferris/config_files.git
config_files / zshrc
100644 33 lines (23 sloc) 0.522 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# completion
autoload -U compinit
compinit
 
# automatically enter directories without cd
setopt auto_cd
 
# use vim as an editor
export EDITOR=vim
 
# aliases
if [ -e "$HOME/.aliases" ]; then
  source "$HOME/.aliases"
fi
 
# vi mode
bindkey -v
 
# use incremental search
bindkey ^R history-incremental-search-backward
 
# expand functions in the prompt
setopt prompt_subst
 
# prompt
export PS1='[${SSH_CONNECTION+"%n@%m:"}%~] '
 
# ignore duplicate history entries
setopt histignoredups
 
# keep more history
export HISTSIZE=200