-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
40 lines (31 loc) · 1.17 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
# Personal aliases and exports
alias ls='lsd --color=auto'
alias less='less -R'
alias grep='grep --color=auto'
alias free="free -mt"
alias df='df -h'
alias wget="wget -c"
alias userlist="cut -d: -f1 /etc/passwd"
# #add new fonts
alias update-fc='sudo fc-cache -fv'
# #check vulnerabilities microcode
alias microcode='grep . /sys/devices/system/cpu/vulnerabilities/*'
# #youtube download
export YTDL="yt-dlp"
alias yt-aac="$YTDL --extract-audio --audio-format aac "
alias yt-best="$YTDL --extract-audio --audio-format best "
alias yt-flac="$YTDL --extract-audio --audio-format flac "
alias yt-mp3="$YTDL --extract-audio --audio-format mp3 "
alias yt-best="$YTDL -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 "
alias yt-ok="$YTDL --merge-output-format mp4"
# # #get the error messages from journalctl
alias jctl="journalctl -p 3 -xb"
# #nano for important configuration files
alias nfstab="sudo $EDITOR /etc/fstab"
alias nnsswitch="sudo $EDITOR /etc/nsswitch.conf"
# #fixes
alias fix-permissions="sudo chown -R $USER:$USER ~/.config ~/.local"
# #systeminfo
alias sysfailed="systemctl list-units --failed"
# #remove
alias rmgitcache="rm -r ~/.cache/git"