October 12th 2006 Posted in
Bash
Found this interesting function on the web:
mc ()
{
mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 $HOME/.mc/tmp
MC=$HOME/.mc/tmp/mc-$$
/usr/bin/mc -C "directory=green,default:executable=brightgreen,default:link=brightmagenta,default:stalelink=black,\
default:device=brightblue,default:special=brightred,default:normal=lightgray,default:selected=yellow,\
black:marked=brightyellow,default:markselect=yellow,red:core=cyan,default:editnormal=green,\
default:editbold=brightgreen,default:editmarked=green,black:menu=red,default:menusel=yellow,\
black:menuhot=green,default:menuhotsel=brightgreen,default::gauge=brightred,green:dnormal=brown,\
default:dfocus=red,yellow:input=green,default" -P "$MC"
cd "`cat $MC`"
/bin/rm -f "$MC"
unset MC;
}
put this function into your .bashrc file in your home folder, and re-login. Now, you should have a new great matrix-style mc. after quitting mc, you should find yourself in the folder last visited with mc - that is neat.
Screenshot [transparent mc on a black background in Fluxbox]:
Trackback: http://bash.editia.info/transparent-mc-with-matrix-colors-plus-a-feature~bash-shell~6.html/trackback/