-
Notifications
You must be signed in to change notification settings - Fork 5
/
executable_aliases.sh
41 lines (32 loc) · 1.06 KB
/
executable_aliases.sh
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
source-all "$XDG_CONFIG_HOME/shell/aliases"
# Copy / Paste
alias copydir='pwd | copy'
alias please='sudo $(fc -ln -1)'
alias pls='please'
# Grub
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
# Restart stuff
alias restart-gnome="killall -3 gnome-shell"
alias restart-kde="killall -3 plasmashell"
alias restart-seadrive="systemctl --user restart seadrive"
# Listing
# alias tree='tree -a -I .git --dirsfirst'
# alias ls='lsd -hAFlt --group-dirs first --color=always'
# alias l='lsd -hAFlt --group-dirs first --color=always'
# alias lst='lsd -hAFlt --tree --group-dirs first --color=always'
# alias tree='lsd -hAFlt --tree --group-dirs first --color=always'
# Always need sudo, don't even bother
alias shutdown="systemctl poweroff"
alias reboot="systemctl reboot"
alias umount="sudo umount"
alias mount="sudo mount"
# kdeconnect
alias share="gapplication launch ca.andyholmes.Valent $@"
# alias chmod commands
alias mx='chmod a+x'
alias 644='chmod -R 644'
alias 666='chmod -R 666'
alias 755='chmod -R 755'
alias 777='chmod -R 777'
# Hashing
alias sha1='openssl sha1'