Updating delete-old-archives and rbtv.
This commit is contained in:
parent
9927ccf3c6
commit
e29d275466
@ -84,9 +84,9 @@ virtual_env_prompt() {
|
||||
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
|
||||
}
|
||||
|
||||
delete-old-archives() {
|
||||
sudo tarsnap --fsck
|
||||
archives=$(sudo tarsnap --list-archives | sort)
|
||||
_delete-old-archives() {
|
||||
tarsnap --fsck
|
||||
archives=$(tarsnap --list-archives | sort)
|
||||
del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3)))
|
||||
del_archives=("${(@f)del_archives}")
|
||||
for archive in $del_archives
|
||||
@ -96,7 +96,7 @@ delete-old-archives() {
|
||||
if [[ $reply == "y" ]]
|
||||
then
|
||||
echo "Deleting '$archive' ..."
|
||||
sudo tarsnap -d -f "$archive"
|
||||
tarsnap -d -f "$archive"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
3
zshrc
3
zshrc
@ -54,6 +54,7 @@ alias cmake='cmake -G Ninja'
|
||||
alias wlan='sudo netctl-auto list'
|
||||
alias adb-connect='adb connect 192.168.1.138:5555'
|
||||
alias sysupgrade='sudo zsh -ci _sysupgrade'
|
||||
alias delete-old-archives='sudo zsh -ci _delete-old-archives'
|
||||
if test -f "$(which nvim)"
|
||||
then
|
||||
alias v='nvim'
|
||||
@ -64,7 +65,7 @@ source ~/.zsh_functions
|
||||
export EDITOR=vim
|
||||
alias emacs='emacs -nw'
|
||||
alias aiawiki='ssh aia -L 80:ldap2:80'
|
||||
alias rbtv='livestreamer twitch.tv/rocketbeanstv &'
|
||||
alias rbtv='livestreamer "https://www.youtube.com/watch?v=mT0TbIqBliw" &'
|
||||
alias taketv='livestreamer twitch.tv/taketv &'
|
||||
alias ls='ls --color=auto'
|
||||
export ASPROOT=~/.asp
|
||||
|
Loading…
Reference in New Issue
Block a user