0

I was using the Visual Studio Code as an IDE to code and then I met a problem.

On the terminal, the path, the working directory was displayed too long.

Like this

enter image description here

I want to change the PS C:\Users\LENOVO\Desktop\Github\onboard-something\onboard-java-mysql>

to something shorter like >

How can I do that ?

Thank you guys very much.

tcvduc
  • 129
  • 8
  • 1
    See https://stackoverflow.com/a/52107556/836330 (`Hiding the full file path in a PowerShell command prompt in VSCode`). – Mark Apr 16 '22 at 18:01

1 Answers1

1

Try this function as specified below:

function prompt( ) {">"}