Skip to content

Commit

Permalink
bashrc: add some minecraft-related handy functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MestreLion committed Aug 28, 2013
1 parent a3e2cb9 commit 9f58deb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions home/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,18 @@ mv-link() (
done < <(find "." -maxdepth 1 -type l)
)

#minecraft
minecraft-restore() {
rm -rf ~/Dropbox/minecraft/saves.bak &&
mv ~/Dropbox/minecraft/saves{,.bak} &&
cp -r ~/work/minecraft/saves/minecraft-auto/saves ~/Dropbox/minecraft
}
minecraft-save() {
rm -rf ~/work/minecraft/saves/minecraft-auto/saves.bak &&
mkdir -p ~/work/minecraft/saves/minecraft-auto/saves
mv ~/work/minecraft/saves/minecraft-auto/saves{,.bak} &&
cp -r ~/Dropbox/minecraft/saves ~/work/minecraft/saves/minecraft-auto
}

# So cute!
type cowfortune >/dev/null 2>&1 && cowfortune

0 comments on commit 9f58deb

Please sign in to comment.