Windows/Terminal: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:


  https://aka.ms/terminal
  https://aka.ms/terminal
=== Download ===
As of 2024.08.01: (last release was June 27)
https://github.com/microsoft/terminal/releases/tag/v1.21.1772.0
https://github.com/microsoft/terminal/releases/download/v1.21.1772.0/Microsoft.WindowsTerminalPreview_1.21.1772.0_x64.zip


== Chocolatey Install ==
== Chocolatey Install ==
Line 12: Line 18:


  choco install microsoft-windows-terminal
  choco install microsoft-windows-terminal
== Git Bash ==
Open Windows Terminal Settings:
* You can do this by clicking the down arrow next to the new tab (+) button and selecting "Settings," or by pressing Ctrl + ,.
Add a New Profile:
* In the Settings window, navigate to the "Profiles" section and click "Add new" or "New empty profile."
Configure the Profile:
* Name: Give the profile a descriptive name, such as "Git Bash."
* Command Line: Specify the path to your bash.exe within your Git for Windows installation. A common path is C:\Program Files\Git\bin\bash.exe --login.
* Starting Directory (Optional): You can set a default starting directory for the Git Bash profile (e.g., %USERPROFILE%).
* Icon (Optional): You can set a custom icon for the profile, often found in the Git for Windows installation directory. (or point to C:\Program Files\Git\bin\bash.exe)


== multiLinePasteWarning ==
== multiLinePasteWarning ==
Line 22: Line 42:
To change these settings (add to settings.json by doing the following)...
To change these settings (add to settings.json by doing the following)...


Hold down the Shift key while selecting Settings in the Windows Terminal dropdown menu. This will open the editor associated with json files, typically Visual Studio Code if installed.
Edit settings.json:
* Hold down the Shift key while selecting Settings in the Windows Terminal dropdown menu. This will open the editor associated with json files, typically Visual Studio Code if installed.
* or in newer versions, go to settings and click the "Open JSON file" in the bottom left


At the root of your settings.json (not under any other key, just inside the first level of brackets), add:
At the root of your settings.json (not under any other key, just inside the first level of brackets), add:


{
<pre>
  "multiLinePasteWarning": false,
{
 
    "multiLinePasteWarning": false,
ref: https://superuser.com/questions/1677982/how-do-i-get-windows-terminal-to-stop-asking-me-every-time-i-paste-something-int
</pre>


ref: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/interaction#warn-when-the-text-to-paste-contains-multiple-lines
ref:
* https://superuser.com/questions/1677982/how-do-i-get-windows-terminal-to-stop-asking-me-every-time-i-paste-something-int
* https://learn.microsoft.com/en-us/windows/terminal/customize-settings/interaction#warn-when-the-text-to-paste-contains-multiple-lines


== keywords ==
== keywords ==

Latest revision as of 21:46, 11 July 2025

Windows Terminal

https://github.com/microsoft/terminal

Microsoft Store Install

https://aka.ms/terminal

Download

As of 2024.08.01: (last release was June 27)

https://github.com/microsoft/terminal/releases/tag/v1.21.1772.0
https://github.com/microsoft/terminal/releases/download/v1.21.1772.0/Microsoft.WindowsTerminalPreview_1.21.1772.0_x64.zip

Chocolatey Install

Unofficial method

choco install microsoft-windows-terminal

Git Bash

Open Windows Terminal Settings:

  • You can do this by clicking the down arrow next to the new tab (+) button and selecting "Settings," or by pressing Ctrl + ,.

Add a New Profile:

  • In the Settings window, navigate to the "Profiles" section and click "Add new" or "New empty profile."

Configure the Profile:

  • Name: Give the profile a descriptive name, such as "Git Bash."
  • Command Line: Specify the path to your bash.exe within your Git for Windows installation. A common path is C:\Program Files\Git\bin\bash.exe --login.
  • Starting Directory (Optional): You can set a default starting directory for the Git Bash profile (e.g., %USERPROFILE%).
  • Icon (Optional): You can set a custom icon for the profile, often found in the Git for Windows installation directory. (or point to C:\Program Files\Git\bin\bash.exe)

multiLinePasteWarning

Warning

You are about to paste text that contains multiple lines. If you paste this text into your shell, it may result in the unexpected execution of commands. Do you wish to continue?

KyzLklE.png

To change these settings (add to settings.json by doing the following)...

Edit settings.json:

  • Hold down the Shift key while selecting Settings in the Windows Terminal dropdown menu. This will open the editor associated with json files, typically Visual Studio Code if installed.
  • or in newer versions, go to settings and click the "Open JSON file" in the bottom left

At the root of your settings.json (not under any other key, just inside the first level of brackets), add:

{
    "multiLinePasteWarning": false,

ref:

keywords