Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Starship integration?

Aug
197
5
I spend most of my time in Bash or Zsh on macOS or *nix, so I'm used to having a heavily customized prompt courtesy of Starship. When I'm on Windows I typically stick with TakeCommand (as I'm an old DOS user at heart and can't tolerate PowerShell), so I wonder: is there any way to integrate Starship with TakeCommand? I figured I'd ask before I started banging my head against it.
 
All of Starship's instructions involve something like these.

Code:
Invoke-Expression (&starship init powershell)
eval "$(starship init bash)"

That is, initialize Starship by executing "starship init <shell_name>" in the shell's automatic start-up script. If Starship could work with TCC, I reckon they would tell you about it. If it supported TCC, they'd tell you to put this in TCSTART.BTM

Code:
starship init TCC

I doubt that would work without a little help from Starship itself. You should ask the Starship developers to support TCC.
 
If @ClioCJS is reading, he could, no doubt, show you many of the nifty things you can do with TCC's prompt without Starship (and without using their font).
 
If @ClioCJS is reading, he could, no doubt, show you many of the nifty things you can do with TCC's prompt without Starship (and without using their font).
Oh, totally happy to learn about that too. I'm sure there's a lot I could learn about TC's prompt capabilities. I used that a lot back in the 4DOS days. I wrote all kinds of extensions for... Hmph. What was the name of that discontinued tool? Oh yeah, FrontRunner! I made all kinds of extensions for that thing. Still miss that capability too. But I digress. I think the key bits I find regularly useful from Starship, which I confess I don't know how to do with TakeCommand if they even can be done, are the display of my current Git repo and branch, AWS details, etc. It's so helpful to keep track of all the different stuff on which I have to work in a day.
 
Starship requires CLink to be installed in order to work with CMD / Windows. From the TCC help on the .INI directives:

ReadConsole=NO|yes - If YES, TCC will use the Windows ReadConsole API (like CMD) to read its line input. If you set ReadConsole=Yes, then you will lose all of the TCC line editing features. Windows will pass the line back to TCC for processing when you press Enter. This option is intended for users who have an extensive editing setup using something like CLink and don't want to convert everything over to the TCC format.

So, yes, you can make it work with TCC -- but you probably wouldn't want to, as it would mean losing most of the command line editing & tab completion features (and popup windows, etc.).
 
Starship requires CLink to be installed in order to work with CMD / Windows. From the TCC help on the .INI directives:

ReadConsole=NO|yes - If YES, TCC will use the Windows ReadConsole API (like CMD) to read its line input. If you set ReadConsole=Yes, then you will lose all of the TCC line editing features. Windows will pass the line back to TCC for processing when you press Enter. This option is intended for users who have an extensive editing setup using something like CLink and don't want to convert everything over to the TCC format.

So, yes, you can make it work with TCC -- but you probably wouldn't want to, as it would mean losing most of the command line editing & tab completion features (and popup windows, etc.).
That is a surprising and very cool answer. Thanks for the explanation. I'm not sure it would be worth it, for the reasons you mention, but I might give it a try. Cheers!
 
If @ClioCJS is reading, he could, no doubt, show you many of the nifty things you can do with TCC's prompt without Starship (and without using their font).

*she :)

But yes, I have cpu-usage-level in my prompt. It's possible to run %@functions in it. Without setdos, it gets complicated with the percent signs.

Here's where I do it:


And here's where I invoke it:

 
Percent signs should be no problem. And you don't need SETDOS. Just strongly quote the prompt string.

1728487735700.webp
 
Back
Top