forked from lbesnard/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc.antigen
68 lines (57 loc) · 1.93 KB
/
zshrc.antigen
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
# Set up the prompt
[ -f $HOME/.env ] && source $HOME/.env
[ -f $HOME/.alias ] && source $HOME/.alias
#source /etc/profile.d/* # especially useful for remote connection
antigen_zsh=$HOME/.antigen/antigen.zsh
if [ ! -f $antigen_zsh ]; then
echo "Installing antigen..."
echo ""
mkdir -p ~/.antigen;
curl https://cdn.rawgit.com/zsh-users/antigen/v1.1.2/bin/antigen.zsh > $HOME/.antigen/antigen.zsh;
fi
source $antigen_zsh
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
command-not-found
gitfast
ssh-agent
sudo
common-aliases
autojump
EOBUNDLES
#antigen bundle kennethreitz/autoenv
#antigen bundle srijanshetty/zsh-pip-completion
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search ./zsh-history-substring-search.zsh
#antigen bundle compleat
#antigen bundle debian
#antigen bundle autopep8
#antigen bundle git-extras
antigen bundle sublime
#antigen bundle tmux
antigen bundle web-search
antigen bundle vagrant
#antigen bundle RobSis/zsh-completion-generator
##antigen bundle rutchkiwi/copyzshell
##antigen bundle horosgrisa/zsh-dropbox
antigen bundle chrissicool/zsh-bash
antigen bundle zsh-users/zsh-autosuggestions
# completion
_cmpl_cheat() {
reply=($(cheat -l | cut -d' ' -f1))
}
compctl -K _cmpl_cheat cheat
## Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
#autoload -Uz compinit && compinit
# Load the theme.
antigen theme agnoster
#antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train
#
# Tell antigen that you're done.
antigen apply
. $DATA_SERVICES_DIR/profile.d/* &>/dev/null
compinit $DATA_SERVICES_DIR/profile.d/*
if command -v tmux>/dev/null; then
[[ ! $TERM =~ screen ]] && [ -z $TMUX ] && exec tmux -2 attach
fi