-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
87 lines (66 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# +-------+
# | ssh |
# +-------+
alias sexthera="ssh [email protected]"
alias pactivate="source jupyterenv/bin/activate"
alias uber="ssh [email protected]"
alias soundreload="pulseaudio -k && sudo alsa force-reload"
alias locate="plocate"
alias youtubes="ytfzf"
# +------+
# | lynx |
# +------+
alias lynx='lynx -vikeys -accept_all_cookies'
# +------+
# | grep |
# +------+
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias gh='history | grep'
# +--------+
# | System |
# +--------+
alias shutdown='sudo shutdown now'
alias restart='sudo reboot'
alias suspend='sudo pm-suspend'
alias bigf='find / -xdev -type f -size +500M' # display "big" files > 500M
alias count='find . -type f | wc -l'
alias cputemp='sensors | grep Core'
alias update='sudo apt-get update && sudo apt-get upgrade'
alias acs="apt-cache search"
# +---------+
# | netstat |
# +---------+
alias port="netstat -tulpn | grep"
alias youtube-dl="youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"
#Git
alias pull='git pull origin master'
alias add='git add --all'
alias push='git push --all'
#Audio
alias moc="mocp ~/Music"
#some config from pywal for dmenu
# Import the colors.
. "${HOME}/.cache/wal/colors.sh"
# Create the alias.
alias dmen='dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15"'
#=============+
# | FUNCTIONS |
#=============+
gitcombo() {
add
message=""
for arg in "$@"
do
message += "$arg"
message += " "
done
git commit -m "$message"
push
}
#Change directory & list files
cl() {
cd $1
ls -la
}