-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.shellrc
70 lines (61 loc) · 1.9 KB
/
.shellrc
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
#!/bin/sh
[ -f "$HOME/.secrets" ] && source "$HOME/.secrets"
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
export GOPATH="$HOME/.go"
export NPM_CONFIG_PREFIX="$HOME/.npm-global"
export GEM_HOME="$HOME/.gems"
export GRPC_GO_LOG_VERBOSITY_LEVEL=99
export GRPC_GO_LOG_SEVERITY_LEVEL=info
export PATH="$GOPATH/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.npm-global/bin:$PATH"
export PATH="$HOME/.rvm/bin:$PATH"
export PATH="$HOME/.gems/bin:$PATH"
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.krew/bin:$PATH"
export PATH="/usr/local/opt/ruby/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LESS="-R"
export CLICOLOR=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_AUTO_UPDATE_SECS=604800
export ANDROID_SDK="$HOME/Library/Android/sdk"
export EDITOR="$(which nvim 2>/dev/null || which vim 2>/dev/null)"
export GIT_EDITOR=$EDITOR
alias ll="ls -alFh"
alias l='ll'
alias ..="cd .."
alias vimrc="$EDITOR $HOME/.vimrc"
alias reload=". $HOME/.bash_profile"
alias dc="docker-compose"
alias nv="nvim"
alias k="kubectl"
alias alpine="docker run --rm -it alpine:latest /bin/sh"
alias cat="bat -p"
alias genpass="openssl rand -hex 64"
alias gd="git diff"
alias gl="git log"
alias gls="git log --stat"
alias gs="git status"
alias gss="git status -s"
alias scurl="curl --fail --silent --show-error"
gencert() {
name="${1-server}"
openssl req -x509 -newkey rsa:1024 -keyout "${name}.key" -out "${name}.crt" -days 3650 -nodes
openssl pkcs12 -export -out "${name}.pfx" -inkey "${name}".key -in "${name}.crt"
}
tn() {
if which gotop &>/dev/null; then
starter_cmd=$(which gotop)
elif which bottom &>/dev/null; then
starter_cmd=$(which bottom)
elif which htop &>/dev/null; then
starter_cmd=$(which htop)
else
starter_cmd=$(which top)
fi
tmux new-session -A -s "${1-base}" -c "${2-HOME}" "${3-$starter_cmd}" 2>/dev/null
}