forked from yowcow/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
55 lines (44 loc) · 1 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
bindkey -v
autoload -U promptinit compinit
compinit
promptinit
prompt walters
export PROMPT='%B%(?..[%?] )%b%n@%U%m%u> '
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end
HISTFILE=~/.zsh_histfile
HISTSIZE=1000000
SAVEHIST=1000000
setopt hist_ignore_dups
setopt share_history
setopt magic_equal_subst
alias vi="vim"
alias be="bundle exec"
alias ce="carton exec"
export EDITOR=vim
export GREP_OPTIONS="--color=auto"
export LANG="en_US.UTF-8"
case "${OSTYPE}" in
darwin*)
alias ls="ls -G"
alias zcat="gunzip -c"
;;
linux*)
alias ls="ls --color"
umask 0002
;;
esac
# functions
pmdir () {
cd $(dirname $(perldoc -lm $1))
}
lpmdir () {
cd $(dirname $(carton exec -- perldoc -lm $1))
}
whereami () {
echo -ne "\033]0;${USER}@${HOST}\007"
}
whereami