root/dotfiles/zsh/shunirr-zshrc

Revision 20644, 1.3 kB (checked in by shunirr, 6 years ago)

dotfiles/zsh/shunirr-zshrc

Line 
1autoload -U compinit
2compinit
3
4export LANG=ja_JP.UTF-8
5export PATH="/Applications/Adobe Flex Builder 3/sdks/3.1.0/bin":/opt/local/bin:/opt/local/sbin:/sw/bin:$PATH
6export MANPATH=/opt/local/man:$MANPATH
7export EDITOR=vi
8export PAGER='lv -c'
9export _JAVA_OPTIONS=-Duser.language=en
10
11alias ls='ls -hFG'
12alias ll='ls -hlFG'
13alias la='ls -ahFG'
14alias lla='ls -ahlFG'
15alias ps='ps'
16alias ks=ls
17alias sk=ls
18alias sl=ls
19
20PROMPT="%m:%n%% "
21RPROMPT="[%~]"
22
23bindkey -e
24
25setopt auto_remove_slash
26setopt hist_ignore_dups
27setopt prompt_subst
28setopt no_beep
29setopt auto_cd
30
31function chpwd() { ls }
32function ssh_screen() {
33        screen -X title $1
34        ssh $1
35}
36
37# GNU Screen AutoStart
38case "${TERM}" in
39  *xterm*|rxvt|(dt|k|E)term)
40    exec screen -U -D -RR
41    ;;
42esac
43
44if [ `expr $TERM : screen` ]; then
45        alias ssh ssh_screen
46        precmd() {
47                screen -X title $(basename `echo $PWD | sed -e "s/ /_/g"`)
48        }
49        preexec() {
50                screen -X title `echo $1 | cut -d " " -f 1`
51        }
52fi
53
54# History
55autoload history-search-end
56zle -N history-beginning-search-backward-end history-search-end
57zle -N history-beginning-search-forward-end history-search-end
58bindkey "^P" history-beginning-search-backward-end
59bindkey "^N" history-beginning-search-forward-end
60
61setopt share_history
62setopt extended_history
63HISTFILE=$HOME/.zsh-history
64HISTSIZE=100000
65SAVEHIST=100000
66function history-all { history -E 1 }
67
Note: See TracBrowser for help on using the browser.