annotate zsh @ 115:7c3cdb235bbb

The reverse of putcrc: rmcrc.
author Edho Prima Arief <edho@myconan.net>
date Fri, 21 Oct 2011 13:38:18 +0700
parents d9aace34d144
children
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 %~]%% '
73
d9aace34d144 [zsh] Bindkey sanity. Still not sane enough.
Edho Prima Arief <me@myconan.net>
parents: 69
diff changeset
9 export PATH="${HOME}/.ecos_bin:${PATH}"
66
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
10 HISTFILE=~/.histfile
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
11 HISTSIZE=10000
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
12 SAVEHIST=10000
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
13 setopt appendhistory nomatch
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
14 unsetopt autocd beep extendedglob notify
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
15 bindkey -e
73
d9aace34d144 [zsh] Bindkey sanity. Still not sane enough.
Edho Prima Arief <me@myconan.net>
parents: 69
diff changeset
16 bindkey '^[[A' history-search-backward
d9aace34d144 [zsh] Bindkey sanity. Still not sane enough.
Edho Prima Arief <me@myconan.net>
parents: 69
diff changeset
17 bindkey '^[[B' history-search-forward
d9aace34d144 [zsh] Bindkey sanity. Still not sane enough.
Edho Prima Arief <me@myconan.net>
parents: 69
diff changeset
18
66
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
19 autoload -Uz compinit
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
20 compinit
21e3f6ea5d59 From template
Edho Prima Arief <me@myconan.net>
parents: 64
diff changeset
21
69
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
22 export EDITOR=vi
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
23 export PAGER='less -Rins'
c8c3e4bc4850 [zsh] Default pager.
Edho Prima Arief <me@myconan.net>
parents: 68
diff changeset
24 alias less='less -Rins'
64
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
25 alias ls='ls -F'
3cd3f31d8a82 Added zsh!
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
26 [ -f "${HOME}/.ecos_zsh.after" ] && . "${HOME}/.ecos_zsh.after"