-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
30 lines (28 loc) · 1.25 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
alias please='sudo'
alias ls='ls -aF --color=always'
alias ll='ls -l'
alias update='sudo apt update && sudo apt upgrade -y && sudo npm upgrade -g && sudo npm upgrade -g npm && sudo n stable'
alias actualizator='please ~/.unix-tools/actualizator.sh'
alias dist-upgrade='sudo apt-get update && sudo apt-get dist-upgrade'
alias install='sudo apt-get install'
alias purge='sudo apt-get purge'
alias tarsvn='tar --exclude={.svn,.idea} -z -c -v -f '
alias targit='tar --exclude={.git,.idea} -z -c -v -f '
alias wepcrackeator='please ~/.unix-tools/wepcrackeator.sh'
alias search='please find / -name '
alias httpserver='python -m SimpleHTTPServer'
alias getmyip='curl -s http://ifconfig.me'
alias getdiskspace='df -h'
alias getmemory='free -m'
alias getlargestfiles='! f() { du -a $1 | sort -n -r | head -n 10; }; f'
alias getInterfaceInfo='! f() { nmcli dev list iface $1; }; f'
alias getBatteryInfo='upower -i `upower -e | grep "BAT"` | grep -E "time|percentage"'
alias screenttyusb0='sudo chmod 777 /dev/ttyUSB0 && screen /dev/ttyUSB0 115200'
alias grunt-debug='! f() { node-debug $(which grunt) $1; }; f'
alias cls='echo -e \\033c'
alias g='git'
alias gr='grunt'
alias brillo='xrandr --output eDP-1 --brightness '
killPattern() {
ps aux | grep $1 | awk '{print $2}' | xargs kill -9
}