# poor man's rc shell rc file with custom definitions # >> true $home/lib/profile is basically that, but this keeps things clean and separated # # usage: save this file as $home/lib/rcrc # usage: add ". $home/lib/rcrc" line to your $home/lib/profile # add ssh private key to factotum cat $home/lib/sshkey > /mnt/factotum/ctl # clear text in terminal fn c { >/dev/text } # save history on exit - uses https://github.com/Nailim/plan9-rchistory fn quit { savehist; exit } # grep trough global history - uses https://github.com/Nailim/plan9-rchistory fn h { if(test $#* '=' 0) hist -G; if not hist -G | grep -i $* } # aliases ... fn ll { ls -l $* }