some additions

This commit is contained in:
Hannes
2026-08-14 13:39:41 +02:00
parent dd0bc6a77c
commit 95183069ce
6 changed files with 606 additions and 1 deletions
+2 -1
View File
@@ -71,6 +71,7 @@ if test -e /usr/bin/nano
echo "Usage: nanorm {FILE}"
return 1
end
rm $argv[1]
nano $argv[1]
end
else
@@ -364,4 +365,4 @@ function git_cred
echo "no .git/config file"
echo "could not add the credentials helper"
end
end
end
+9
View File
@@ -165,3 +165,12 @@ if test -e /usr/bin/reflector
alias mirrord='sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist'
alias mirrors='sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist'
end
function pacman-autoremove
set -l orphans (pacman -Qtdq)
if test (count $orphans) -gt 0
sudo pacman -Rns $orphans
else
echo "No orphaned packages."
end
end