-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases.zsh
42 lines (37 loc) · 1.56 KB
/
.aliases.zsh
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
alias cp='cp -i' # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias more=less
alias vim=$EDITOR
alias svim=sudoedit
alias sf='cls && pfetch'
alias swaytree='swaymsg -t get_tree | grep -E '\''app_id|name|shell'\'''
alias cls=clear
alias wget='wget --hsts-file='\''$XDG_DATA_HOME/wget-hsts'\'''
alias unp='unp -U'
alias grep='grep --colour=auto'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
alias ls='eza --icons=auto'
alias ll='eza -alghF --octal-permissions --group-directories-first --icons=auto'
alias la='eza -a --group-directories-first --icons=auto'
alias l='eza -F --group-directories-first --icons=auto'
alias lss='eza -lr --sort=size'
alias lsm='eza -lr --sort=mod'
alias lst='eza --tree --level=2'
alias pacman='sudo pacman'
alias pacs='sudo pacman -S'
alias paci='pacman -Qi'
alias pacr='pacman -Rns'
alias pacro='pacman -Qtdq | pacman -Rns -'
# list unrequierd, not in base (run pacman first for sudo password)
alias pacru='comm -23 <(pacman -Qqt | sort) <(pacman -Qqg base | sort)'
alias pacu='pacman -Syu'
alias pacmu='sudo reflector --verbose --latest 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
alias yas='yay -S --noconfirm'
alias yau='yay -Syu --noconfirm'
alias ytl='yt-dlp -F'
alias yta='yt-dlp -x -f bestaudio --audio-quality 0 --audio-format mp3'
alias ytv='yt-dlp -f 302+bestaudio/247+bestaudio' #720p 60fps or 720p 30fps
alias public-ip='curl ifconfig.me'
alias private-ip='ip a show wlan0 | awk '\''{print $2}'\'' | sed -n '\''3p'\'''