TC 13 - Prompt

Jan 19, 2011
Norman, OK
On 2011/08/29 I received an email from the Feedback forum (UserVoice) stating that my suggestion "~ path replacement in PROMPT" was complete. I'm running the latest beta (13.00.15 RC1) and see no reference to this in the What's New or the PROMPT documentation.

Has this been implemented?

Full text of the request followed by an additional comment added the same day as the original request since I couldn't edit the original submission.

~ path replacement in PROMPT
If HOME is defined as a variable (as is used by 'cd ~'), replace any path that begins with the
HOME definition by ~ followed by whatever subdirectory. For instance, if HOME is defined
'C:\Dir1\Dir2\' and I'm working in 'C:\Dir1\Dir2\Dir3\' then the prompt would display '[~\Dir3]'. A
suggestion for a PROMPT switch could be '$~' with which I could replace '$p' in the default
'PROMPT=[$p]'. I guess this follows on the lines of the 'DIR relative path display' suggested by
Jim Cook.
Allow the use of ~ in commands other than just CD ~
copy file.txt ~
dir ~\subdir
set path=~;%path
Jan 19, 2011
Norman, OK
Only the part about about using ~ in places other than CD.
Awesome! I think that was the better half of the request. Still looking forward to seeing the PROMPT modification in the future, but can work around it until then since I discovered the $W prompt switch.

Similar threads
Thread starter Title Forum Replies Date
vefatica ANSI, PROMPT ... ??? Support 1
FreezerBurnt ANSI Prompt messes up list output. Support 39
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
M How to? Black TCC Prompt Support 2
N Command execution slows down in TCC Prompt after a while Support 6
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
vefatica Timing commands with $= in the prompt? Support 16
samintz How to? Alias or prompt? Support 1
T Elapsed time format in prompt changed in TCC 25 Support 10
samintz MOVE and Prompt on overwrite Support 3
robinsiebler Creating a custom prompt Support 9
K TCC prompt background color Support 4
Alpengreis Problem if command prompt is not legacy Support 4
Joe Caverly Documentation Customizing the TCC Prompt Support 0
C How to? handle the UAC prompt on computer restarts with Everything Support 3
B when doing SFTP via IFTP to my secure site my users always get the finger print key prompt Support 1
M PROMPT with git branch Support 1
MikeBaas How to? SELECT: exclude files / display prompt Support 2
vefatica ? "prompt" command Support 3
S Elapsed time in TCC prompt question Support 0
Joe Caverly Determine if program started from command prompt Support 2
W Opening a new tab takes forever to get the command prompt Support 5
vefatica UAC prompt? Support 0
C How to? ctrl-c does not prompt "Terminate batch job" Support 2
Mordachai TCMD Prompt Here?!@ Support 14
vefatica Fixed DO, OSD, and cancel batch prompt Support 3
CWBillow Send Command-line with prompt? Support 6
David McClelland Why the prompt to del c:\* Support 7
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
vefatica Cancel batch prompt? Support 0
1 CMD file kicks out to prompt Support 18
Steve Pitts Are you sure prompt from DEL command Support 5
Exolon Strange Prompt. Support 6
S TITLEPROMPT - width x height in prompt? Support 14
T Wrong prompt in Windows command console Support 3
S 4NT - delete from command prompt and recycle bin Support 12
vefatica @@key aliases cause new prompt? Support 16
H Another multiple FTP password prompt issue Support 2
H Double prompt for password with * in FTP syntax Support 3
CWBillow TCMD prompt here only opens to root Support 6
D setting days back at prompt Support 12
M TCC Prompt Here Colors Support 0
Phileosophos Using a percent sign in the PROMPT Support 3
Charles Dye INPUT prompt oddity Support 5
R Start Prompt Here? Support 9
Ville Changing folders location from TCC prompt? Support 7
E Shorter prompt / ANSI codes support Support 10

Similar threads