-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
77 lines (64 loc) · 2.11 KB
/
.profile
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
71
72
73
74
75
76
77
# Variables
# ---------
export PS1=$'%{\e[0;34m%}%T%{\e[0m%} %{\e[0;34m%}[%{\e[0m%}%{\e[0;32m%}%n%{\e[0m%}%{\e[0;30m%}:%{\e[0m%}%{\e[0;36m%}%m%{\e[0m%}%{\e[0;34m%}]%{\e[0m%} %{\e[0;34m%}%~ %{\e[0m%}'
export MAIL='[email protected]'
export LANG='en_US.UTF-8'
export EDITOR='vim'
export GPG_TTY=$(tty)
export TERM=xterm
if [[ $(uname) == 'Linux' ]]; then
export BROWSER='google-chrome-stable'
fi
# Aliases
# -------
alias v='vim'
alias prof='v ~/.profile && sprof'
alias sprof='source ~/.profile'
alias snips='cd ~/.vim/bundle/ultisnips/ultiSnips'
alias bnpm='npm --userconfig=$HOME/.bnpmrc'
alias gre='grep -rni'
alias dado='ssh [email protected]'
alias bigdaddy='ssh [email protected]'
alias feh='feh --conversion-timeout 1'
alias l='ls -lah'
alias mpv='mpv --input-ipc-server=/tmp/mpvsocket'
alias gits='git status'
alias gitc='git commit'
alias gita='git add'
alias gitk='git checkout'
alias gitp='git push'
alias pull='git pull'
alias gitt='git tag -s'
alias g='cd ~/git'
alias a='cd ~/git/ashlar'
alias dl='cd ~/Downloads'
alias lint='eslint src'
alias watch='npm run watch'
alias s='npm start'
alias b='npm run build'
alias t='npm run test'
alias d='npm run dev'
alias scaffold='git config --local user.name TheScaffolder && git config --local user.email [email protected] && git commit --amend --author "TheScaffolder <[email protected]>" && git config --local --unset user.email && git config --local --unset user.name'
if [[ `uname` == 'Linux' ]]; then
alias pbcopy='xsel --clipboard --input'
alias u='yay -Syyu'
fi
# Functions
# ---------
function y() { yarn $@ --ignore-engines }
function whitescale() { convert [email protected] -channel RGB -fuzz 99% -fill white -opaque black [email protected] ;}
function secretToEnv() { kubectl get secrets -n $@ -o json | jq '.data | map_values(@base64d)' | yq -P | sed 's/: /=/' }
if [[ $(uname) == 'Linux' ]]; then
function off() { sudo shutdown 0 ;}
fi
function dcheck() {
for d in $@
do
echo -n "$d - "
res=`whois $d`
echo "$res" | grep 'Expiry Date' || echo "available"
echo ""
done
}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm