- Aug
- 2,267
- 108
Using TCC 11.00.33 Windows XP [Version 5.1.2600]
TCC Build 33 Windows XP Build 2600 Service Pack 3
I am a frequent user of irb (Interactive Ruby Shell), and have become accustomed to the default prompt it provides.
Here is my attempt to duplicate the prompt in TCC, with slight modifications.
First, I need a prompt counter. I do this with the following Prompt Line Counter alias;
Next, I change my prompt to this;
The prompt displays the current command processor, the current process ID number, and the current value of the prompt line counter, followed by a > and a space. Put whatever is useful to you in your prompt.
Speaking of useful, it's good to know what directory one is in. I used to have this in my prompt, but have instead placed the name of the current directory in the status bar, using the PRE_INPUT, PRE_EXEC, and POST_EXEC Aliases as follows;
You can also place other info in the statusbar, along with the current working directory;
Joe
TCC Build 33 Windows XP Build 2600 Service Pack 3
I am a frequent user of irb (Interactive Ruby Shell), and have become accustomed to the default prompt it provides.
Here is my attempt to duplicate the prompt in TCC, with slight modifications.
First, I need a prompt counter. I do this with the following Prompt Line Counter alias;
Code:
alias plc=`set plc=%@inc[%plc]`
Code:
PROMPT=`%_cmdproc:%_pid:%@exec[@plc] %plc $g `
Speaking of useful, it's good to know what directory one is in. I used to have this in my prompt, but have instead placed the name of the current directory in the status bar, using the PRE_INPUT, PRE_EXEC, and POST_EXEC Aliases as follows;
Code:
pre_input=`statusbar %_cwd`
pre_exec=`statusbar %_cwd`
post_exec=`statusbar %_cwd`
Code:
pre_input=`statusbar Week %_isoweek %_cwd`
pre_exec=`statusbar Week %_isoweek %_cwd`
post_exec=`statusbar Week %_isoweek %_cwd`