GithubHelp home page GithubHelp logo

Terminal changes C: to c: about terminal HOT 4 CLOSED

mikedice avatar mikedice commented on September 25, 2024
Terminal changes C: to c:

from terminal.

Comments (4)

github-actions avatar github-actions commented on September 25, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from terminal.

zadjii-msft avatar zadjii-msft commented on September 25, 2024
  • Does this repro if the vintage "Windows Console Host" is set as your default terminal in the settings app?
  • In a VS prompt, what is the output of set HOMEDRIVE & set SystemDrive?
  • Same question, but in a normal CMD tab?
  • Does anything look askew (DHowett EDIT: it said eschew) in the Environment Variables settings dialog/?

from terminal.

mikedice avatar mikedice commented on September 25, 2024

In my Terminal app Windows Console Host is set as the Default Terminal Application

From VS2022 Command prompt in Terminal
c:\Users\mikedice\source\repos>set HOMEDRIVE
HOMEDRIVE=C:

c:\Users\mikedice\source\repos>set SystemDrive
SystemDrive=C:

From classic command prompt
C:\Users\mikedice>set systemdrive
SystemDrive=C:

C:\Users\mikedice>set homedrive
HOMEDRIVE=C:

I dumped all environment variables and I do see this:
VSCMD_START_DIR=c:\users\mikedice\source\repos
In fact this is the only place lower case c: is shown

And then I saw that VSCMD_START_DIR=c:\users\mikedice\source\repos was set in the terminal Command Line property: cmd /k "set VSCMD_START_DIR=C:\users\mikedice\source\repos & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -startdir=auto -arch=x64 -host_arch=x64"
I think I remember now setting that so the vsdevcmd prompt lands where i want it to and in that Command Line I used lower case c:

Guess this issue can be resolved by design

from terminal.

DHowett avatar DHowett commented on September 25, 2024

Ah! Thanks for following up.

I usually work around this with the -SkipAutomaticLocation argument to Enter-VsDevShell or the -startdir=none argument to vsdevcmd. That puts Terminal in charge of the starting directory, so you can use the normal Starting Directory setting.

We haven't done this by default for consistency with the existing Developer Shell shortcuts in the start menu.

I'll close this one out! Thanks!

from terminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.