chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

Can CMD show the name of each script that's run? #642

Closed darkzbaron closed 1 month ago

darkzbaron commented 1 month ago

I launch many batch script . Is there a way you can modify the startup behaviour of clink to show the full path of the running script?

harryeffinpotter commented 1 month ago

Wouldn't $~1 do that already?

On Wed, Jul 31, 2024, 8:10 AM darkzbaron @.***> wrote:

I launch many batch script . Is there a way you can modify the startup behaviour of clink to show the full path of the running script?

— Reply to this email directly, view it on GitHub https://github.com/chrisant996/clink/issues/642, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQCVOCBISRYFHPRTYHAEXDZPDH2JAVCNFSM6AAAAABLYKX7R2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTSOBZGQ4DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

darkzbaron commented 1 month ago

Yes but it does not work when you subprocess via python. Sometimes it fails and it's hard to debug. I just installed click and it's amazing !

chrisant996 commented 1 month ago

I launch many batch script . Is there a way you can modify the startup behaviour of clink to show the full path of the running script?

I don't understand the question.

Are you asking for a way for Clink to print the name of each Lua script it loads? That would be very invasive and should not be done.

Are you asking for a way for Clink to print the string from the clink.autostart setting? No. That's something the script or command should do itself.

Are you asking something else? Please describe further and include specific details.

chrisant996 commented 1 month ago

Are you asking for CMD to show the name of each batch script that CMD runs? Clink isn't involved in that. Clink isn't a shell -- the shell is CMD. Clink adds a scriptable prompt and extensive input line editing capabilities. Everything else is still CMD. I don't know of a way to make CMD print the name of every script it runs.

darkzbaron commented 1 month ago

@chrisant996 Yes that's it ! Ok noted thanks for the feedback