-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
executable file
·79 lines (61 loc) · 2.82 KB
/
.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
alias qr='qrencode -t utf8 -o -'
alias publicip='curl -s ifconfig.me'
alias whereami='curl -s ifconfig.es/geo'
alias journalctlclear='sudo journalctl --vacuum-time=1d'
alias xclip='xclip -selection clipboard'
alias localip="ip address | grep -Po '192\.168\.\d{1,3}\.\d{1,3}' | grep -Pv '\.255$'"
alias writetopdf='writetopdf -s 1.6'
alias shred='shred -u -n 1'
alias ssh-no-pubkey="ssh -o 'PubkeyAuthentication=no'"
alias convert='magick'
# Use the perl-rename instead of the default util-linux rename if installed
command -v perl-rename >/dev/null && alias rename=perl-rename
# Force XDG convention use
alias wget='wget --hsts-file="${XDG_CACHE_HOME:-$HOME/.cache}/wget-hsts"'
alias nvidia-settings='nvidia-settings --config="${XDG_CONFIG_HOME:-$HOME/.config}"/nvidia/settings'
alias mvn='mvn -gs "${XDG_CONFIG_HOME:-$HOME/.config}/maven/settings.xml"'
export KDEHOME="${XDG_CONFIG_HOME:-$HOME/.config}/kde"
# Fix system theme issues
alias dia='GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc env dia --integrated'
# aria2
alias aria2c='aria2c --file-allocation=none -c'
alias aria2cfast='aria2c -x16 -s16 -j16 -k1M --optimize-concurrent-downloads=true'
# Spicetify-cli
alias spicetify-fix-aur='sudo chmod a+wr /opt/spotify; sudo chmod a+wr /opt/spotify/Apps; spicetify backup apply'
# LaTex
alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode'
# KDE
alias plasmashell-restart='plasmashell --replace >/dev/null 2>&1 &; disown'
alias pulseaudio-create-dummy-sink='pactl load-module module-null-sink media.class=Audio/Sink sink_name=Dummy-Sink channel_map=surround-51'
alias pulseaudio-create-network-sink='pactl load-module module-tunnel-sink "server=rpi sink_name=Network"'
alias alert='notify-send -a Konsole -i konsole -t 3000 --urgency=normal'
# FFmpeg
alias ffmpeg='ffmpeg -hide_banner'
alias ffprobe='ffprobe -hide_banner'
alias ffplay='ffplay -hide_banner'
# mpv
alias mpv-webcam='mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0'
# Short renames
alias e=exit
alias c=clear
# Override shell buildins with the GNU versions
alias time='/usr/bin/time'
alias watch='/usr/bin/watch'
# Package manager
alias pacmanlist='pacman -Q'
alias pacmanlistmanual='pacman -Qe'
alias yayclear='yay -Sc --aur'
alias yaylist='pacman -Qm'
# Youtube-dl
alias yt-dlp-subs="yt-dlp --write-sub --sub-format best --sub-lang en,de --embed-subs"
alias youtube-dl='yt-dlp'
# yadm
alias yadmst='yadm status'
# Firefox
alias firefox=firefox-developer-edition
# Use better jdupes (better fork) instead of fdupes
#alias fdupes=jdupes
# Clean history
alias history-nsfw-filter="grep -iPv 'nsfwalbum|pornhub|porndig|eporner|porntrex|xhamster|yt-dlp|ytdlp|gallery-dl|instaloader' ~/.zsh_history > ~/.zsh_history.tmp && env mv ~/.zsh_history.tmp ~/.zsh_history"
# Use sudo -E vi instead of sudoedit
alias sudoedit="sudo -E vi"