This commit is contained in:
Faerbit 2016-03-02 17:55:22 +01:00
commit 10c2606b4a
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ virtual_env_prompt() {
} }
delete-old-archives() { delete-old-archives() {
sudo tarsnap --fsck
archives=$(sudo tarsnap --list-archives | sort) archives=$(sudo tarsnap --list-archives | sort)
del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3)))
del_archives=("${(@f)del_archives}") del_archives=("${(@f)del_archives}")

2
zshrc
View File

@ -19,7 +19,7 @@ export SYSTEMD_EDITOR=vim
alias sudo='sudo ' alias sudo='sudo '
alias tasks="ps -u fab" 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 sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run'
alias ssh='ssh ' alias ssh='ssh '
alias ping='ping ' alias ping='ping '