-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
70 lines (56 loc) · 2.34 KB
/
.bashrc
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
# enable coloring in terminal
export CLICOLOR=1
# coloring style
export LSCOLORS=Exfxcxdxbxegedabagacad
##
# Android SDK
##
export ANDROID_BUILD_TOOLS_VER=24.0.1
export ANDROID_HOME=/opt/android-sdk
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_SDK_ROOT=$ANDROID_SDK
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/build-tools/$ANDROID_BUILD_TOOLS_VER:$PATH
# Android NDK
export ANDROID_NDK=/usr/local/share/android-ndk
export ANDROID_NDK_HOME=$ANDROID_NDK
export PATH=$ANDROID_NDK:$PATH
# Jtool
export PATH=$PATH:/opt/jtool
# Ensureit shitz
export ENSUREIT_DIR=/opt/ensureit/ensureit-current
# some common used alias'
alias ll='ls -lG'
alias logcat='adb logcat'
alias idb='ssh idevice-usb'
alias howbig='du -d0 -h'
alias gs='git status'
alias burpsuite='java -jar /opt/burpsuite/burpsuite-current.jar&'
alias adb-type='adb shell input text'
alias adb-tab='adb shell input keyevent 61'
alias adb-ret='adb shell input keyevent 66'
alias adb-plist='adb shell pm list packages'
alias adb-path='adb shell pm path'
alias vim="nvim"
alias vi="nvim"
alias vimdiff='nvim -d'
alias vf='vim $(fzf)'
alias grep='grep -n --color=always'
# neovim stuffs
export EDITOR=nvim
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then
GIT_PROMPT_THEME=Custom
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
fi
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
#ADDED BY 010 EDITOR
export PATH="$PATH:/Applications/010 Editor.app/Contents/CmdLine"
source ~/.gradle/caches/okbuck/buck-completion.bash
export HOMEBREW_NO_SANDBOX=1
export PATH=/usr/local/opt/python/libexec/bin:/Users/tngo/.nvm/v0.10.32/bin:/Users/tngo/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local/munki:/Applications/Wireshark.app/Contents/MacOS:/Users/tngo/gocode/bin:/opt/jtool
export HOMEBREW_NO_SANDBOX=1
export PATH=/usr/local/opt/python/libexec/bin:/Users/tngo/.nvm/v0.10.32/bin:/Users/tngo/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local/munki:/Applications/Wireshark.app/Contents/MacOS:/Users/tngo/gocode/bin:/opt/jtool
[ -f ~/.fzf.bash ] && source ~/.fzf.bash