Merge branch 'master' of github.com:hykilpikonna/zshrc

This commit is contained in:
Hykilpikonna
2022-10-02 21:36:15 -04:00
2 changed files with 14 additions and 1 deletions
+3
View File
@@ -46,5 +46,8 @@ if [ -f "/etc/arch-release" ]; then
clean-cache() {
yay -Sc --noconfirm
sudo pacman -Sc --noconfirm
yarn cache clean
conda clean -a
pip cache remove '*'
}
fi
+11 -1
View File
@@ -68,12 +68,22 @@ alias mount-external='sudo mount -t cifs //192.168.2.1/external /smb/external -o
alias ds-clean="sudo find ./ -name \".DS_Store\" -depth -exec rm {} \;"
alias clean-empty-dir="find . -type d -empty -delete -print"
alias compress-zst="tar -I 'zstd -T36 -19' --checkpoint=.1024 --totals -c -f"
alias restart-kwin="DISPLAY=:0 setsid kwin_x11 --replace"
alias mkfs.fat32="sudo mkfs.fat -F 32"
alias btrfs-fs-progress="sudo watch -d sudo btrfs fi us"
alias btrfs-balance-progress="sudo watch -d btrfs balance status"
alias catt="echo 🐱"
alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh/authorized_keys"
compress-zst() {
cores=$(grep -c ^processor /proc/cpuinfo)
echo "Starting ZSTD compression with $cores cores"
tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals --totals=SIGUSR1 -c -f "$@"
}
alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1"
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
reset-permissions-dangerous() {
sudo find . -type d -exec chmod 755 {} \;