Games: Difference between revisions

Jump to navigation Jump to search
114 bytes added ,  7 January 2011
m
→‎nethack: Fail alias
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/102039bunbun.gz\" ] && cp /var/games/nethack/dumps/bunbun.lastgame.txt ~/dumps/\`date +%Y-%m-%d-%H:%M:%S\`.txt"
  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==

Navigation menu