diff --git a/zsh_functions b/zsh_functions index 8646175..131c88f 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,6 +85,7 @@ virtual_env_prompt() { } delete-old-archives() { + sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}") diff --git a/zshrc b/zshrc index 3e17286..6c834b6 100644 --- a/zshrc +++ b/zshrc @@ -19,7 +19,7 @@ export SYSTEMD_EDITOR=vim alias sudo='sudo ' alias tasks="ps -u fab" -alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg" +alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg" alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run' alias ssh='ssh ' alias ping='ping '