annotate rc/zshrc @ 631:7a19b1357209

RIP mercurial Apparently they moved in 2015.
author nanaya <me@nanaya.pro>
date Fri, 18 Oct 2019 15:47:17 +0900
parents 77c1f9e624a3
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
533
77c1f9e624a3 Rename prefix to `.ec.` instead of `.ecos_`.
edogawaconan <me@myconan.net>
parents: 332
diff changeset
2 [ -f "${HOME}/.ec.zsh.before" ] && . "${HOME}/.ec.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 %~]%% '
533
77c1f9e624a3 Rename prefix to `.ec.` instead of `.ecos_`.
edogawaconan <me@myconan.net>
parents: 332
diff changeset
9 export PATH="${HOME}/.ec.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'
533
77c1f9e624a3 Rename prefix to `.ec.` instead of `.ecos_`.
edogawaconan <me@myconan.net>
parents: 332
diff changeset
26 [ -f "${HOME}/.ec.zsh.after" ] && . "${HOME}/.ec.zsh.after"