This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc.tmpl
executable file
·84 lines (69 loc) · 1.63 KB
/
.zshrc.tmpl
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
source /usr/share/zsh/share/antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
antigen bundle greymd/docker-zsh-completion
antigen bundle Tarrasch/zsh-autoenv
antigen bundle z
antigen bundle andrewferrier/fzf-z
antigen apply
autoload -U edit-command-line
autoload -U compinit
autoload -U select-word-style
select-word-style bash
compinit
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_VERIFY
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt PROMPTSUBST
setopt AUTOCD
setopt CORRECT
export SAVEHIST=10000
export HISTSIZE=10000
export HISTFILE="$HOME/.zsh-history"
export KEYTIMEOUT=1
export FZF_DEFAULT_OPTS='--height 100%'
export FZFZ_SUBDIR_LIMIT=0
eval "$(pyenv init -)"
bindkey -e
zle -N edit-command-line
zle -N fzfz-file-widget
bindkey '^x^e' edit-command-line
bindkey '^g' fzfz-file-widget
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
source /usr/bin/aws_zsh_completer.sh
source ~/perl5/perlbrew/etc/bashrc
source /usr/share/git/completion/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUPSTREAM="verbose"
GIT_PS1_SHOWCOLORHINTS=1
GIT_PS1_STATESEPARATOR=''
prompt_jobs() {
if [ $(jobs | wc -l) -gt 0 ]
then
echo " %j,"
fi
}
prompt_return_code() {
ret=$?
if [ $ret -gt 0 ]
then
echo " $ret,"
fi
}
prompt_git() {
git_info=$(__git_ps1 | xargs)
if [ $git_info ]
then
git_info="${git_info:1:${#git_info}-2}"
echo " $git_info"
fi
}
PROMPT='> %d |>$(prompt_return_code)$(prompt_jobs)$(prompt_git)
-> %f'
# vim: ft=zsh