-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
executable file
·59 lines (50 loc) · 1.66 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
#!/bin/bash
alias npm='node -max_old_space_size=4096 /usr/local/bin/npm'
export PATH="/usr/local/sbin:/usr/local/Cellar/node/7.4.0/bin:$PATH:/opt/facebook/hg/bin/"
# setup thefuck
if [ "x${SSH_TTY}" = "x" ]; then
eval "$(thefuck --alias f)"
export PATH="$PATH:`yarn global bin`"
fi
# general unzipper utility
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
# run prepack
prepack () {
node --stack_size=10000 --stack_trace_limit=200 --max_old_space_size=8192 bin/prepack.js --compatibility jsc-600-1-4-17 --mathRandomSeed 0 --delayUnsupportedRequires "$@"
}
ppf_e2str () {
echo "$@" | tr '[:upper:]' '[:lower:]' | sed 's/__/::/g' | sed 's/^.*$/"&"/g'
}
underscore_pfh () {
echo "$@" | sed 's/ > /_/g' | pbcopy
# FB App > News Feed > Feed Unit > Pages You May Like Feed Unit
}
alias ls='ls -G'
alias grep='grep -n --color'
alias beep='echo -e "\a\a\a\a"'
alias see_emulator='scrcpy'
# Vi bindings
set -o vi
HISTSIZE=130000 HISTFILESIZE=-1
# setup cd -- function
source ~/tools/acd_func.sh
alias javac7="/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/javac"