Skip to content

Instantly share code, notes, and snippets.

@LuanVSO
Last active March 17, 2021 21:22
Show Gist options
  • Save LuanVSO/4804cadb2ce42676d76ed69390a60b0e to your computer and use it in GitHub Desktop.
Save LuanVSO/4804cadb2ce42676d76ed69390a60b0e to your computer and use it in GitHub Desktop.
setx PROMPT $E]7;file://%%COMPUTERNAME%%/$P$E\$P$G
@LuanVSO
Copy link
Author

LuanVSO commented Sep 20, 2020

the setx command makes it persist through different sessions, this can be easily reverted by going to edit environment variables on windows and delete the PROMPT variable.
i use double % to make it so that the variable is evaluated every time cmd is launched as opose to just when this command is executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment