annotate zsh @ 72:cb20a159ab00

Merge.
author Edho Prima Arief <me@myconan.net>
date Fri, 27 May 2011 10:05:11 -0400
parents c8c3e4bc4850
children d9aace34d144
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env zsh
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
2 [ -f "${HOME}/.ecos_zsh.before" ] && . "${HOME}/.ecos_zsh.before"
68
d6e52e074962 Allow change title in zsh
Edho Prima Arief <me@myconan.net>
parents: 66
diff changeset
3 case $TERM in
d6e52e074962 Allow change title in zsh
Edho Prima Arief <me@myconan.net>
parents: 66
diff changeset
4 xterm*|screen*)
d6e52e074962 Allow change title in zsh
Edho Prima Arief <me@myconan.net>
parents: 66
diff changeset
5 precmd () {print -Pn "\e]0;%n@%m: %~\a"}
d6e52e074962 Allow change title in zsh
Edho Prima Arief <me@myconan.net>
parents: 66
diff changeset
6 ;;
d6e52e074962 Allow change title in zsh
Edho Prima Arief <me@myconan.net>
parents: 66
diff changeset
7 esac
64
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
8 PS1='[%n@%m %~]%% '
66
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
9 HISTFILE=~/.histfile
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
10 HISTSIZE=10000
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
11 SAVEHIST=10000
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
12 setopt appendhistory nomatch
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
13 unsetopt autocd beep extendedglob notify
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
14 bindkey -e
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
15 autoload -Uz compinit
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
16 compinit
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
17
69
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
18 export EDITOR=vi
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
19 export PAGER='less -Rins'
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
20 alias less='less -Rins'
64
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
21 alias ls='ls -F'
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
22 [ -f "${HOME}/.ecos_zsh.after" ] && . "${HOME}/.ecos_zsh.after"