forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc.old
112 lines (87 loc) · 3 KB
/
zshrc.old
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
echo "starting antigene ..."
source ~/dotfiles/antigen/antigen.zsh
source ~/.machine.zsh
source ~/dotfiles/plugins/deploy-to-wildfly/deploy
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
zstyle ':completion:*' use-cache yes
echo "adding bundles to antigene ..."
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle adb
antigen bundle bower
antigen bundle git
antigen bundle git-flow
antigen bundle gradle
antigen bundle npm
antigen bundle rails
antigen bundle rake-fast
antigen bundle ruby
antigen bundle rvm
antigen bundle osx
antigen bundle history
antigen bundle command-not-found
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions src
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle clauswitt/zsh-grunt-plugin
# rspec autocompletion by git status
antigen bundle ~/dotfiles/plugins/completions --no-local-clone
# antigen bundle https://github.com/tandibar/dotfiles plugins/completions
# kubectl autocompletion
if [ /usr/bin/kubectl ]; then source <(kubectl completion zsh); fi # Fügen Sie der Zsh-Shell dauerhaft Autocomplete hinzu
echo "... antigene bundles loaded"
# Load the theme.
antigen theme nebirhos
echo "loaded antigene theme 'nebirhos'"
# Tell antigen that you're done.
antigen apply
echo "applied antigene"
############ my own PROMPT
# Based on nebirhos but with linebreak
PROMPT="$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT
%{$fg_bold[green]%}%n@$HOST ➜ %{$reset_color%} "
echo "add azure-cli autocompletion"
. <(azure --completion)
echo "extend path..."
echo "export things"
#export GIT_AUTHOR_NAME="Andi Bade"
#export GIT_AUTHOR_EMAIL="[email protected]"
#export GIT_COMMITTER_NAME="Andi Bade"
#export GIT_COMMITTER_EMAIL="[email protected]"
export EDITOR='codium --wait'
export VISUAL='codium --wait'
export PATH="/home/andi/.yarn/bin:$PATH"
export JAVA_OPTS="-Xms128m -Xmx4096m"
export PATH="$PATH:$HOME/.npm/bin"
export VAULT_ADDR="https://vault.cloud.kbs.de"
echo "exported all environment variables"
echo "creating aliases ..."
alias bt='cd /home/andi/Projekte/brautagebuch/brautagebuchapp/'
echo "creating kbs aliases"
export KBS_HOME="~/Projekte/kbs"
alias mux="tmuxinator"
echo "... aliases created"
withPassword() {
echo -n Password:
read -s password
}
export EBI_HOME="/home/andi/kbs/ebi"
ebiNpmActivate() {
export NODE_EXTRA_CA_CERTS='/home/andi/certificates/ebi-cacert.pem'
sudo npm config -g set cafile $NODE_EXTRA_CA_CERTS
npm config set registry https://nexus.cloud.kbs.de/repository/npm-all
}
ebiNpmDeactivate() {
npm config set registry https://registry.npmjs.org/
sudo npm config -g rm cafile
}
rvm default
echo "activating pyenv..."
export PATH="/home/andi/.pyenv/shims:/home/andi/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
echo "... pyenv activated"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/andi/.sdkman"
[[ -s "/home/andi/.sdkman/bin/sdkman-init.sh" ]] && source "/home/andi/.sdkman/bin/sdkman-init.sh"