-
Notifications
You must be signed in to change notification settings - Fork 0
/
.extra
35 lines (28 loc) · 1.06 KB
/
.extra
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
#!/bin/bash
## Init fasd through cache
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
## ruby rbenv root
RBENV_ROOT="/usr/local/ruby" && export RBENV_ROOT
## Git credentials
GIT_AUTHOR_NAME="Tapani Moilanen"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
## Remote Kafka server
export REMOTE_KAFKA_SERVER=
## Pyenv home dir
PYENV_ROOT="/usr/local/python" && export PYENV_ROOT
## Postgres cli shortcuts
alias psqd="psql -h localhost -p 5432 -U postgres"
## Kubectl shortcuts
alias kl="/Applications/Docker.app/Contents/Resources/bin/kubectl --context local"
alias kd="/Applications/Docker.app/Contents/Resources/bin/kubectl --context docker-for-desktop"
alias ks="kubectl --context sb"
alias kp="kubectl --context prd"