-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBashrc
More file actions
26 lines (22 loc) · 927 Bytes
/
Bashrc
File metadata and controls
26 lines (22 loc) · 927 Bytes
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
My bashrc additions
1. Learn a new command every time you open a terminal
echo "Did you know that:"; whatis $(ls /bin | shuf -n 1)
2. Aliases
alias ud='sudo apt-get update'
alias ug='sudo apt-get upgrade'
alias dg='sudo apt-get dist-upgrade'
alias croot='cd /home/soham/'
alias unlock="sudo rm /var/lib/dpkg/lock"
alias wifi="sudo service network-manager restart"
alias parted="sudo parted /dev/sdb unit s print"
alias rebash=". ~/.bashrc"
alias editbash="gedit ~/.bashrc"
alias findmypi="nmap -v -sn 192.168.1.0/27 | grep rasp"
3. Paths and Env. variables
export USE_CCACHE=1
export ANDROID_HOME=/home/soham/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/build-tools:$ANDROID_HOME/build-tools
export PATH=$PATH:/home/soham/orion/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin
export PATH=$PATH:~/Linux-tweaks/Scripts
export _JAVA_OPTIONS="-Xmx6g"