author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 13 Nov 2012 19:01:48 +0200 | |
changeset 589 | e1812451b4f8 |
parent 245 | aefd2167af31 |
child 651 | 649cbbab7ded |
permissions | -rw-r--r-- |
215
7b1b6872e92e
Include system wide /etc/zshrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
214
diff
changeset
|
1 |
|
7b1b6872e92e
Include system wide /etc/zshrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
214
diff
changeset
|
2 |
if [[ -e /etc/zshrc ]]; then |
7b1b6872e92e
Include system wide /etc/zshrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
214
diff
changeset
|
3 |
. /etc/zshrc |
7b1b6872e92e
Include system wide /etc/zshrc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
214
diff
changeset
|
4 |
fi |
179
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
5 |
|
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
6 |
EDITOR=vim |
172 | 7 |
|
180
176106ed8e46
Set prompt for shell.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
179
diff
changeset
|
8 |
PS1='zsh# ' |
176106ed8e46
Set prompt for shell.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
179
diff
changeset
|
9 |
|
181 | 10 |
# Easy cd to often used dirs. |
11 |
CDPATH=.:~:~/devel:~/devel/my-devel |
|
12 |
||
172 | 13 |
HISTFILE=~/.histfile |
214 | 14 |
HISTSIZE=10000 |
15 |
SAVEHIST=10000 |
|
172 | 16 |
|
177
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
17 |
setopt autocd beep extendedglob nomatch notify |
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
18 |
|
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
19 |
setopt hist_ignore_all_dups |
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
20 |
setopt append_history |
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
21 |
setopt hist_ignore_space |
95c784cc8cbb
History settings for zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
22 |
setopt hist_no_functions |
172 | 23 |
|
179
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
24 |
autoload -U edit-command-line |
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
25 |
zle -N edit-command-line |
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
26 |
bindkey '\ee' edit-command-line |
ed15e30ff41a
Set editor to VIM. Bind edit command for shells.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
177
diff
changeset
|
27 |
|
172 | 28 |
# Emacs like editing. |
29 |
bindkey -e |
|
30 |
||
243
843cc9d49dc2
Enable history search.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
215
diff
changeset
|
31 |
bindkey "^[[A" history-search-backward |
843cc9d49dc2
Enable history search.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
215
diff
changeset
|
32 |
bindkey "^[[B" history-search-forward |
843cc9d49dc2
Enable history search.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
215
diff
changeset
|
33 |
|
245 | 34 |
autoload -U compinit |
35 |
compinit |
|
36 |
||
37 |
# autoload -U promptinit |
|
38 |
# promptinit |
|
39 |
# prompt walters |