-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
29 lines (21 loc) · 849 Bytes
/
zshrc
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
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="naveed"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export PATH=./rbin:./bin:$HOME/.rbenv/bin:$HOME/.rbenv/shims:/usr/local/bin:$PATH
eval "$(rbenv init -)"
# To get ctags to work with vim
# alias ctags="`brew --prefix`/bin/ctags"
source ~/.fresh/build/shell.sh
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# Kubernetes and docker helpers
function dx {
docker exec -it $(docker ps --format "{{.Names}}" --filter "name=$1") bash
}
function dq {
docker stop $(docker ps --format "{{.Names}}" --filter "name=$1")
}
function kx {
echo "Connecting to ${1:-latest} ${2:-site}"
kubectl exec -it -n ${1:-latest} $(kubectl get po -n ${1:-latest} -l app=${2:-site} -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase --no-headers | grep Running | head -1 | awk '{ print $1 }') -c ${2:-site} /bin/bash
}