forked from jferris/config_files
-
Notifications
You must be signed in to change notification settings - Fork 1
/
antigenrc
80 lines (63 loc) · 2.08 KB
/
antigenrc
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
# oh-my-zsh by default - uncommenting this pollutes my LSCOLORS
# antigen use oh-my-zsh
# bundles
antigen bundles <<EOBUNDLES
# pip
# fabric
# heroku
vi-mode
greymd/docker-zsh-completion
zsh-users/zsh-history-substring-search
# virtualenv # the prompt provided here sucks
# tonyseek/oh-my-zsh-virtualenv-prompt
# virtualenvwrapper
# autoenv
Tarrasch/zsh-autoenv
# let's be clear about when we're overriding default OMZ
# aroberts/oh-my-zsh plugins/invoke
# other crap
aroberts/zsh-git-prompt
# colors
unixorn/warhol.plugin.zsh@main
# my bundles
$HOME/.zsh/wo
EOBUNDLES
# apply bundles and configuration to shell
antigen apply
#################
# CONFIGURATION #
#################
export ZSH_THEME_GIT_PROMPT_PREFIX="("
export ZSH_THEME_GIT_PROMPT_SUFFIX=")"
export ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}%{●%G%}"
export ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[cyan]%}%{𝛥%G%}"
export ZSH_THEME_GIT_PROMPT_BEHIND="%{↓%G%}"
export ZSH_THEME_GIT_PROMPT_AHEAD="%{↑%G%}"
export ZSH_THEME_GIT_PROMPT_BEHIND_AHEAD_SECTION_SEPARATOR=""
export ZSH_THEME_GIT_PROMPT_UNTRACKED="%{…%G%}"
# enable caching of git-prompt
# export ZSH_THEME_GIT_PROMPT_CACHE=1
# use haskell git executable for speed, where available
# find $HOME/.antigen/repos/*zsh-git-prompt.git -type f -name gitstatus | grep .bin &> /dev/null
# if [ $? -eq 0 ]; then
# export GIT_PROMPT_EXECUTABLE="haskell"
# fi
# autoenv config
# export AUTOENV_FILE_ENTER=.env
# zsh-history-substring-search
#
# this block can't differentiate between warehouse and ec2 - just bind them all
# uname | grep Linux >/dev/null
# if [ $? -eq 0 ]; then
# bindkey '^[OA' history-substring-search-up
# bindkey '^[OB' history-substring-search-down
# else
# bindkey '^[[A' history-substring-search-up
# bindkey '^[[B' history-substring-search-down
# fi
bindkey '^[OA' history-substring-search-up
bindkey '^[OB' history-substring-search-down
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down