some additions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user