Questions tagged [windows-terminal]

Microsoft's official new terminal app for Windows, released May 2019.

Windows Terminal is the Terminal app for Windows made by Microsoft, released in May 2019. See the Windows Terminal GitHub

348 questions
1
vote
1 answer

Why can't I run pip on Windows Terminal (Ubuntu profile)

Installed Python 3.10 with python-3.10.3-amd64.exe Trying to start using python in my Windows environment, I get this in return when trying to execute pip in bash (Windows Terminal: Ubuntu profile) $ bash > pip help Command 'pip' not found, but can…
Lord Reptilia
  • 550
  • 1
  • 4
  • 13
1
vote
1 answer

How to pass an argument consisting of multiple parts to bash in a WSL instance when creating a shortcut on Windows?

I want to create a shortcut which starts Windows Terminal with Windows Subsystem for Linux (WSL) and exports the path to my arm-gcc compiler files. Looking over other posts on SO, I've gotten this in the target of the shortcut: wt.exe wsl.exe ~ -d…
1
vote
2 answers

How to start another PowerShell session in a separate window while keeping the environment?

While working in PowerShell I tend to quickly switch to admin mode by typing Start-Process wt -Verb runas When I do so, a new window appears (sadly, no sudo in Windows). In that new session however, the environment is totally fresh. Is it possible…
radrow
  • 6,419
  • 4
  • 26
  • 53
1
vote
0 answers

choco and other apps not working when open windows terminal form folder Context Menu

If I open the windows terminal by right click inside the folder and choosing "Open in Windows Terminal" some applications like choco, nano and protoc will not work and give me the following error: protoc : The term 'protoc' is not recognized as the…
MSH
  • 395
  • 1
  • 4
  • 13
1
vote
1 answer

Cannot set environment variables for npm-config in PowerShell

When I am trying to set environment variables using PowerShell in Windows Terminal with the command set test1=value1, I get no errors. However, when I try to check all environment variables using the set command, I get the following prompt: cmdlet…
1
vote
1 answer

Copy data from Linux console to Windows-host-clipboard using Windows Terminal

I'm using Windows Terminal to access my Linux boxes and I have a need for copying data from the Linux console to the Windows host clipboard, it that possible? More specific I run a .Net core application on Linux which need to copy a string to the…
MrCalvin
  • 1,675
  • 1
  • 19
  • 27
1
vote
1 answer

get administrator privileges in PowerShell (Windows Terminal) from without running it as an administrator

Even if you are a authoritative user and you need to do something that requires extended privileges, I have to run the terminal again by right clicking it as choosing "Run as Administrator" unlike in Linux and other operating systems where we can…
anindiangeek
  • 82
  • 11
1
vote
1 answer

cannot click to move the cursor after the column 91 in vim in windows terminal

In windows terminal, I can click to move the cursor, but can not click after the column 91 by mouse in vim. but I can click to move the curor after th column 91 in others terminal, such as MobaXterm. I also have tried the solution from vim: cannot…
Derek
  • 11
  • 2
1
vote
1 answer

How to change `acrylicOpacity` action in Windows Terminal Preview so it depends on the background colour under a terminal window?

I know that I can modify my Terminal Preview json with acrylicOpacity, but when I have some stuff that is white/bright on the background, then it's hard to see console output. I wonder, is it possible to somehow create the relation of the amount of…
Paweł Pedryc
  • 368
  • 2
  • 5
  • 19
1
vote
1 answer

How do I run a Windows Terminal command from a shortcut?

The same way you can echo "hello world" on cmd by creating a shortcut using "C:\Windows\System32\cmd.exe" /k echo hello world, how can I do the same with Windows Terminal? Swapping the cmd file location with the wt file location doesn't work. It…
cherieodu
  • 43
  • 3
1
vote
1 answer

Open tabs in Windows Terminal w/ Ubuntu WSL & Zsh

I'm writing a script to run on UBUNTU WSL in Windows. I use zsh as my shell, but bash could work too here. I'd like that bash script to use wt.exe (Windows Terminal) to open some new tabs. Here's what I have so far: #!/bin/bash cmd.exe /c "wt.exe"…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
1
vote
2 answers

Windows Terminal - npm is not responding

When using the specific combination of Git Bash and Windows Terminal, npm does not do anything. For example, npm -v, npm install, or any other command starting with npm will just go to the next line with no response. However, when I run npm -v or…
Jake Wong
  • 11
  • 2
1
vote
1 answer

SQLite query doesnt't print in cmd

I'm connected to a SQLite database named db.sqlite3 on Windows. After running .tables command I know which tables I have, so I'm trying to show one of them with select * from table1, without seeing any output in Windows Terminal. Why is this…
dzegpi
  • 554
  • 5
  • 14
1
vote
1 answer

Run Windows Terminal with non-executed predefined command

I need to run Windows Terminal with specific settings. I need it to start powershell in directory to C:\dir and type command yarn start to console input but not execute the command. I just want to have this command prepared and then I just press…
1
vote
1 answer

Change current working directory in powershell from Visual Studio Code

When debugging Python using VS Code, I am using windows terminal with PowerShell as my external terminal. For normal use, I have starting directory in PowerShell set as %USERPROFILE% (C:\Users\username) but when running python code I need to change…