-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
117 lines (106 loc) · 2.55 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#Bash alias file
# apt
alias \
aph="apt search"\
aps="sudo apt install"\
apd="sudo apt update"\
apdl="apt list --upgradable"\
apg="sudo apt upgrade"\
apr="sudo apt remove"\
apf="apt-file search"
# ls
# F classify with indiator (*/=>@|)
# A almost all (not . and ..)
# R subdirs recursively
# t sort by time
# H follow symlink listed on the cli
# d list dirs themselves
# 1 one file per line. avoid \n
# s print size
# S sort by size
# c sort by ctime (last mod of file status info)
# r reverse order
alias \
l="ls -lFh"\
la="ls -lAFh"\
lr="ls -tRFh"\
lt="ls -ltFH"\
ll="ls -l"\
ldot="ls -ld .*"\
lS="ls -1FSsh"\
lart="ls -1Fcart"\
lrt="ls -1Fcrt"
# GNU/unix
alias \
op="xdg-open"\
rm="rm -v"\
cp="cp -iv"\
mv="mv -iv"\
t="tail -f"\
sudo="sudo "\
grep="grep --color=auto"\
egrep="egrep --color=auto"\
fgrep="fgrep --color=auto"\
sgrep="grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}"\
purge="sudo sync && echo 3 > /proc/sys/vm/drop_caches"
# customizations
alias \
cfz="vim $ZDOTDIR/.zshrc"\
sxh="vim ~/.config/sxhkd/sxhkdrc"\
bsp="vim ~/.config/bspwm/bspwmrc"\
ba="vim ~/.bash_aliases"\
pol="vim ~/.config/polybar/config.ini"\
xdf="vim ~/.Xdefaults"\
# du
alias \
ducks="du -cks * | sort -rn | head"\
dud="du -d 1 -h"\
dush="du -sh"\
dux="du -hsx * | sort -rh | head -n 40"\
dfth="df -Th | grep -e ^/dev -e Filesystem | grep -v loop"
# development
alias \
doc="docker-compose exec workspace"\
ngso="ng s --open"\
pas="php artisan serve"\
nrw="npm run watch"
# git
alias \
gam="git commit -am"\
ga="git add" \
gc="git commit -m"\
gs="git status"\
gp="git push"\
gf="git pull"\
# dotfiles git
alias \
dit='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'\
gdc="dit commit -m"\
ds="dit status"\
dp="dit push"\
gdf="dit pull"\
dam="dit commit -am"
# beets
alias \
bls="beet ls"\
bla="beet ls -a"\
bw="beet write"
# with config
alias \
w3m="w3m -config ~/.config/w3m/config"\
mpdas="mpdas -c ~/.config/mpdasrc"
# misc
alias \
v="vim"\
nmset="rfkill block wlan; sleep 3; rfkill unblock wlan"\
pbc="xclip -selection clipboard"\
pbp="xclip -selection clipboard -o"\
ytv="straw-viewer --player=mpv"\
ffmpeg="ffmpeg -hide_banner"\
trem="transmission-remote" \
slsk="/home/zerinol/fixo/progs/SoulseekQt-2018-1-30-64bit.AppImage"
kbd="setxkbmap -model abnt2 -layout br\
-option caps:escape"\
kbn="setxkbmap -model abnt2 -layout br\
-option caps:escape\
-variant nodeadkeys"