I currently use an alias in csh/tcsh to open shells with specific window colors.
Example: xterm -geometry 105x25 -font 8x13 -bc -bg #333 -fg #999 \!* &
What I'd like to do is have one command open a new shell with a color based on the level the shell is in a tree.
Example:
- %> xt
Open shell A (white bg/black fg) - new shell - %> xt
Open shell A.a (black bg/grey fg) - child shell - %> xt
Open shell A.a.a (green bg/yellow fg) - grandchild shell
I have bash available, but I use tcsh or csh by default.
As stated, I would like one command/alias to open the parent and child shells and decide what color to use.