-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
66 lines (58 loc) · 2.24 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
64
65
66
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias emacs-lab='emacs --with-profile=lab --debug-init'
alias emacs-backup='emacs --with-profile=backup --debug-init'
# ls alias
case $(uname -s) in
Linux)
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
;;
Darwin)
alias ls='$(brew --prefix)/opt/coreutils/libexec/gnubin/ls --color=auto'
alias ll='$(brew --prefix)/opt/coreutils/libexec/gnubin/ls --color=auto -alF'
alias la='$(brew --prefix)/opt/coreutils/libexec/gnubin/ls --color=auto -A'
alias l='$(brew --prefix)/opt/coreutils/libexec/gnubin/ls -- color=auto -CF'
;;
esac
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias code='cd ~/code'
if [ "$HOSTNAME" == "monckcrazytower" ]; then
alias code="cd ~/secondary/code"
alias shell_scripts="cd ~/secondary/code/shell_scripts/"
alias nas="cd ~/dsmonckcrazy/"
fi
if command -v minikube >/dev/null; then
alias kubectl='minikube kubectl'
fi
if command -v podman >/dev/null; then
alias docker=podman
fi
alias setup_go_tools='
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/x-motemen/gore/cmd/gore@latest
go install github.com/stamblerre/gocode@latest
go install golang.org/x/tools/cmd/godoc@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/cmd/gorename@latest
go install golang.org/x/tools/cmd/guru@latest
go install github.com/cweill/gotests/gotests@latest
go install github.com/fatih/gomodifytags@latest
go install golang.org/x/tools/gopls@latest
go install mvdan.cc/sh/v3/cmd/shfmt@latest
go install github.com/jjuliano/godef@latest
'
#### Work Specific
alias aws_lab='AWS_PROFILE=lab-us-east-1'
alias aws_sbx_use1='AWS_PROFILE=sandbox-us-east-1'
alias aws_sbx_euc1='AWS_PROFILE=sandbox-eu-central-1'
alias aws_stage='AWS_PROFILE=stage-us-east-1'
alias aws_prod='AWS_PROFILE=prod-us-east-1'
alias python='python3'