-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
63 lines (56 loc) · 1.76 KB
/
.bash_aliases
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
# Load my environment too (in case bashrc does not)
if [[ -f ~/.bash_env ]]; then
. ~/.bash_env
elif [[ -f ~/dotfiles/.bash_env ]]; then
. ~/dotfiles/.bash_env
fi
alias ls="ls -G --color=auto"
alias ls='ls -F --color=auto'
alias l='ls -AF --color=auto'
alias ll='ls -alh --color=auto'
alias lt='ls -alht'
alias df='df -haT'
alias tree='tree -FC'
alias md='mkdir -p'
alias digs='dig +short'
alias testipport='nc -z -w1 -v'
alias h='history'
alias c='clear'
alias yy='yum -y'
alias pst='export TZ=America/Los_Angeles'
alias ssh_nokey='ssh -o PubkeyAuthentication=no'
alias sdr='screen -dR'
alias sdrz='screen -dR -e^Z^Z'
alias sx='screen -x'
alias sxz='screen -x -e^Z^Z'
alias grep='grep --color=auto -n'
alias p2='python2'
alias p3='python3'
alias k=kubectl
#alias kc='kubectl config get-contexts -o name'
alias kc='kubectl config get-contexts'
alias kc-rename='kubectl config rename-context'
alias kcu='kubectl config use-context'
alias kcn='kubectl config set-context --current --namespace'
alias kcd='kubectl config delete-context'
alias kg='kubectl get'
alias kn='kubectl get namespaces'
alias kw='kubectl get -o wide'
alias wk='watch kubectl'
alias wkw='watch kubectl -o wide'
alias kd='kubectl describe'
alias d=docker
alias dc='docker container'
alias di='docker image'
alias g=gcloud
alias gc='gcloud compute'
alias gi='gcloud beta compute instances'
alias s=skaffold
alias sd='skaffold dev --port-forward'
alias t=terraform
# Simple list of ips (linux)
myips () { ifconfig|grep -B1 "inet"|awk '{ if ( $1 == "inet" ) { printf "%s %s\n",substr($2,index($2,":")+1),name } else if ( $2 == "Link" ) { name=$1 } }'|grep -v 127.0.0.1; }
myip () { myips|awk '{print $1}'; }
mypip () { curl icanhazip.com; }
mypip4 () { curl ipv4.icanhazip.com; }
mypip6 () { curl ipv6.icanhazip.com; }