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}) }
|
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
|
||||||
}
|
}
|
||||||
|
|
||||||
delete-old-archives() {
|
_delete-old-archives() {
|
||||||
sudo tarsnap --fsck
|
tarsnap --fsck
|
||||||
archives=$(sudo tarsnap --list-archives | sort)
|
archives=$(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}")
|
||||||
for archive in $del_archives
|
for archive in $del_archives
|
||||||
@ -96,7 +96,7 @@ delete-old-archives() {
|
|||||||
if [[ $reply == "y" ]]
|
if [[ $reply == "y" ]]
|
||||||
then
|
then
|
||||||
echo "Deleting '$archive' ..."
|
echo "Deleting '$archive' ..."
|
||||||
sudo tarsnap -d -f "$archive"
|
tarsnap -d -f "$archive"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
3
zshrc
3
zshrc
@ -54,6 +54,7 @@ alias cmake='cmake -G Ninja'
|
|||||||
alias wlan='sudo netctl-auto list'
|
alias wlan='sudo netctl-auto list'
|
||||||
alias adb-connect='adb connect 192.168.1.138:5555'
|
alias adb-connect='adb connect 192.168.1.138:5555'
|
||||||
alias sysupgrade='sudo zsh -ci _sysupgrade'
|
alias sysupgrade='sudo zsh -ci _sysupgrade'
|
||||||
|
alias delete-old-archives='sudo zsh -ci _delete-old-archives'
|
||||||
if test -f "$(which nvim)"
|
if test -f "$(which nvim)"
|
||||||
then
|
then
|
||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
@ -64,7 +65,7 @@ source ~/.zsh_functions
|
|||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
alias emacs='emacs -nw'
|
alias emacs='emacs -nw'
|
||||||
alias aiawiki='ssh aia -L 80:ldap2:80'
|
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 taketv='livestreamer twitch.tv/taketv &'
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
export ASPROOT=~/.asp
|
export ASPROOT=~/.asp
|
||||||
|
Loading…
Reference in New Issue
Block a user