17
edits
m (→nethack: Clarification) |
m (→nethack: Fail alias) |
||
Line 77: | Line 77: | ||
A configuration file for the game (which takes advantage of hpmon and menucolors and makes it prettier with UTF-8 shit, among other things) is available [http://www.redbrick.dcu.ie/~bunbun/.nethackrc here], just put it in ~/.nethackrc. | A configuration file for the game (which takes advantage of hpmon and menucolors and makes it prettier with UTF-8 shit, among other things) is available [http://www.redbrick.dcu.ie/~bunbun/.nethackrc here], just put it in ~/.nethackrc. | ||
If you'd like to keep all of the dumpfiles created when you die, instead of just the most recent, add the following alias to your shell rc file (most likely ~/.zshrc) | If you'd like to keep all of the dumpfiles created when you die, instead of just the most recent, add the following alias to your shell rc file (most likely ~/.zshrc) | ||
alias nethack="nethack; [ ! -e \"/var/games/nethack/save/ | alias nethack="nethack; [ ! -e \"/var/games/nethack/save/$USERID$USERNAME.gz\" ] && cp /var/games/nethack/dumps/$USERNAME.lastgame.txt ~/dumps/\`date +%Y-%m-%d-%H:%M:%S\`.txt" | ||
This should save it each time you die to ~/dumps/YEAR-MM-DD-HH:MM:SS.txt, though in some cases it creates duplicates (If you quit before choosing your role/race/gender/alignment that I know of). | Make sure to change $USERID and $USERNAME to your userid (gotten with the `id` command) and your username. This should save it each time you die to ~/dumps/YEAR-MM-DD-HH:MM:SS.txt, though in some cases it creates duplicates (If you quit before choosing your role/race/gender/alignment that I know of). | ||
==netris== | ==netris== |