From b1b0a271925c9c410ebfed444f3b006c6b12fcc5 Mon Sep 17 00:00:00 2001 From: "chawley ()" Date: Wed, 13 Dec 2017 19:36:04 -0500 Subject: [PATCH] Added alias to cheat at DCSS --- .zsh_aliases | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zsh_aliases b/.zsh_aliases index 4578cbc..549c9e4 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -44,6 +44,7 @@ alias openips='nmap -v -sn -n 192.168.0.0/24 -oG - | grep Down' # webthis - create asimple HTTP server in the current directory serving on port 8000 alias webthis='python -m SimpleHTTPServer 8000' -# For cheating at DCSS (using git) -alias crawlrestore='git reset --hard && git clean -fd' +# For cheating at DCSS +alias crawlsave='if [[ -f crawlsave.tgz ]]; then rm -f crawlsave.tgz; fi && tar cvzf crawlsave.tgz .crawl && crawl-tiles' +alias crawlrestore='rm -rf ~/.crawl && tar xvf ~/crawlsave.tgz -C ~/ && crawl-tiles'