-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc-ubudu
59 lines (44 loc) · 1.71 KB
/
bashrc-ubudu
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
# -*- mode:shell-script; coding:utf-8 -*-
ulimit -n 4000
if [ -s "$DISPLAY" ] ; then
setxkbmap -model pc104 -layout us -option compose:multi
xmodmap -pke|grep -q -s -e 'keycode *38 *= *a *A *Greek_alpha *Greek_ALPHA' || xmodmap ~/.xmodmap
fi
export PATH="$HOME/opt/bin:$PATH"
export PATH="$HOME/opt/adt/eclipse:$HOME/opt/adt/sdk/tools/:$HOME/opt/adt/sdk/build-tools/:$HOME/opt/adt/sdk/platform-tools/:$PATH"
export PATH="$HOME/opt/jdk/bin:$PATH"
export JAVA_HOME="${HOME}/opt/jdk"
export ANDROID_HOME="${HOME}/opt/adt/sdk"
# sudo $(which adb) root
export PATH="$HOME/binubudu:$PATH"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
alias eclipse='eclipse > /tmp/eclipse.log 2>&1'
type -p gls && alias ls='gls -FaCB' || alias ls='ls -FaCB'
[ -r "$HOME/.rvm/scripts/rvm" ] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# export PATH="${PATH}:${HOME}/src/wifi-scanner/current-toolchains/toolchain-mipsel_4.1.1_BRCM24/bin:${HOME}/src/wifi-scanner/current-toolchains/toolchain-mipsel_4.1.1_BRCM24/usr/bin:${HOME}/src/wifi-scanner/current-toolchains/toolchain-mipsel_4.1.1_BRCM24/mipsel-linux-uclibc/bin"
function connect-adb-device(){
adb devices
adb tcpip ${ANDROID_SERIAL/.*:/}
sleep 2
adb connect ${ANDROID_SERIAL}
adb devices
}
function connect-nereid(){
export ANDROID_SERIAL=192.168.2.182:5555
connect-adb-device
}
function connect-tab(){
export ANDROID_SERIAL=192.168.2.103:5555
connect-adb-device
}
function connect-g3(){
export ANDROID_SERIAL=192.168.2.50:5555
connect-adb-device
}
function adb-reconnect(){
adb disconnect 192.168.2.182:5555
sleep 1
adb tcpip 5555
sleep 1
adb connect 192.168.2.182:5555
}