- Color schemes in Windows Terminal
- Switching to a different color scheme
- Creating your own color scheme
- Темы для windows terminal
- Советы и лайфхаки по Windows Terminal
- При первом запуске
- Кастомизация
- Глобальные настройки профиля
- Кастомные цветовые схемы
- Настраиваемая командная строка
- Олдскульный шрифт
- Места для фоновых изображений
- Функции
- аргументы командной строки wt.exe
- Панели
- Копи-паст
- Определение привязок клавиш и действий
- Отправка команд input
- Начальный каталог WSL
- How to change the theme in Windows Terminal
- How to change your Windows Terminal theme
- How to add custom themes to Windows Terminal
- How to change the background image in Windows Terminal
- Windows Terminal
- Halo: MCC’s live service elements make it better, not worse
- Microsoft’s Surface Duo is not ‘failing up’
- Here’s what you can do if Windows 10 update KB5001330 is causing issues
- These are the best PC sticks when you’re on the move
Color schemes in Windows Terminal
Windows Terminal lets you define your own color schemes, either by using the built-in preset schemes, or by creating your own scheme from scratch. To change schemes, you’ll need to edit the settings.json file in an editor such as Visual Studio Code.
Switching to a different color scheme
Launch Windows Terminal and then select the small downward-facing arrow in the title bar. This will open a pull-down menu that lists the available profiles on your system (for example, Windows PowerShell and Command Prompt) and some other options. Select Settings, and the settings.json file will open in your default text editor.
This file is where you can define various options per window or per profile. To demonstrate, let’s change the color scheme for the Command Prompt profile.
Look down the JSON file until you find the section that includes:
Change it to read:
Notice the extra comma in the hidden line. Once you save this file, Windows Terminal will update any open window. Open a Command Prompt tab if you haven’t already, and you’ll immediately see that the colors have changed.
Creating your own color scheme
The «Tango Light» scheme is included as a default option, but you can create your own scheme from scratch or by copying an existing scheme.
Color schemes can be defined in the schemes array of your settings.json file. They are written in the following format:
Every setting, aside from name , accepts a color as a string in hex format: «#rgb» or «#rrggbb» . The cursorColor and selectionBackground settings are optional.
Темы для windows terminal
Windows Terminal Themes
Preview and copy themes for the new Windows Terminal.
How to use the themes
This site let’s you preview and then copy a theme you like (or download a json file with all of them).
The official docs for Windows Terminal seem to very thoroughly explain how to change the settings, but essentially:
- open Windows Terminal settings
- add your chosen theme(s) to schemes
- in profiles , find the shell you’re using (eg cmd, powershell, ubuntu) and replace colorScheme with the name of the theme
- 🥳
Contribute a theme
Ideally for the ecosystem new themes should be proposed to iTerm2-Color-Schemes (where most of these themes come from), then everyone can benefit.
If not, new themes can be add added with a pull request. Just add them to the list in app/src/custom-colour-schemes.json . You shouldn’t need to run anything. If you’d like to receive credit, or know who should, please add it to app/src/credits.json .
- The OneDark theme was created by azrikahar
- The DraculaPlus, Material Darker, Bubbles and OneStar theme was created by jos3s
- Monokai Cmder by vdurante
- Rosé Pine by mvllow
- Tokyo Night by enkia
- Moonlight II by atomiks
- Monokai (filter Octagon) by monokai
- Sonoran Gothic && Sonoran Sunrise by d-mckee
- The Horizon theme was created by wafelack
Install using yarn and run using yarn start , this should start both the React app and Express server.
You can run all the tests with yarn test:dev .
E2E tests are run with cypress. You can use yarn cy:open to open and develop using the Dashboard and run test suite with yarn cy:run . There’s a few unit test using Jest that you can develop using yarn unit:watch .
There’s CI with CircleCI and there’s visual regression tests with Percy too.
Советы и лайфхаки по Windows Terminal
Терминал Windows поставляется с множеством функций, которые позволяют настраивать его и взаимодействовать с ним наиболее удобным для вас способом. Давайте рассмотрим несколько советов и приемов, которые помогут вам настроить свой терминал так, чтобы он идеально вам подходил. На момент публикации этого сообщения в блоге Windows Terminal имел версию 1.3, а Windows Terminal Preview — версию 1.4.
При первом запуске
При первой установке Windows Terminal вы будете поприветствованы строкой Windows PowerShell. Терминал Windows по умолчанию поставляется с профилями Windows PowerShell, командной строки и Azure Cloud Shell.
В дополнение к этим профилям, если у вас установлены какие-либо дистрибутивы Подсистемы Windows для Linux (WSL), терминал также автоматически создаст профили для этих дистрибутивов. Если вы хотите установить дополнительные дистрибутивы WSL на свой компьютер, вы можете сделать это после установки терминала и при следующем запуске терминала профили для этих дистрибутивов должны появиться автоматически. Эти профили будут иметь значок Tux, однако вы можете изменить значок дистрибутива в своих настройках, чтобы он соответствовал любому дистрибутиву, который у вас есть. Вы можете найти дополнительную информацию о WSL на сайте с документацией WSL.
Примечание. Вам нужно будет загрузить значки дистрибутивов, поскольку они не поставляются внутри терминала.
Кастомизация
Терминал Windows поставляется с большим набором настроек по умолчанию, включая цветовые схемы и сочетания клавиш. Если вы хотите просмотреть файл настроек по умолчанию, удерживайте Alt и нажмите кнопку «Настройки» в раскрывающемся меню.
Глобальные настройки профиля
Терминал Windows предоставляет вам возможность применить настройку к каждому профилю без необходимости дублировать настройку для каждой записи профиля. Это можно сделать, добавив параметр в массив «defaults» внутри объекта «profiles» . Список всех возможных настроек профиля можно найти на странице настроек профиля в нашей документации.
Кастомные цветовые схемы
Терминал Windows по умолчанию поставляется с набором цветовых схем. Однако, когда дело касается цветовых схем, есть неограниченные возможности. Отличное место для поиска дополнительных схем терминалов — terminalplash.com.
Если вы хотите создать свою собственную цветовую схему, terminal.sexy — отличный инструмент для создания и визуализации ваших собственных цветовых схем.
Совет. Вы можете сопоставить свою цветовую схему с фоновым изображением, используя палитру цветов PowerToys, чтобы получить коды цветов для использования в вашей схеме. PowerToys можно установить с помощью winget с winget install powertoys .
Настраиваемая командная строка
Вы можете придать стиль своей командной строке с помощью Oh my Posh и Terminal-Icons. Эти инструменты позволяют настроить внешний вид вашей командной строки с помощью цветов, глифов и смайликов. Чтобы запустить Oh my Posh с Posh-Git и PSReadline, следуйте этому руководству.
Oh my Posh недавно выпустили Oh my Posh 3, который имеет гораздо больше возможностей настройки и не является эксклюзивным только для PowerShell. Пройдя руководство, указанное выше, вы можете перейти на V3 с помощью следующей команды:
Вы можете добавить немного изюминки своей оболочке, добавив пользовательские значки с помощью значков терминала. На изображении ниже также используется настраиваемая тема Posh для добавления смайлов в строку.
Примечание. Для отображения значков терминала вам необходимо установить шрифт Nerd Font.
Олдскульный шрифт
Для тех из вас, кто является поклонником эффекта ретро-терминала, отличное место для поиска шрифтов старой школы находится на странице https://int10h.org/oldschool-pc-fonts/.
Места для фоновых изображений
Обои для рабочего стола часто отлично смотрятся в Windows Terminal в качестве фоновых изображений. Отличные места для поиска фоновых изображений — это темы Windows, а также WallpaperHub. Терминал Windows поддерживает как изображения, так и гифки для фоновых изображений.
Другой популярный вариант — размещение логотипа оболочки, которую вы используете в качестве фонового изображения, чтобы помочь определить, в какой оболочке вы находитесь. Вы можете указать, где будет размещаться фоновое изображение, с помощью «backgroundImageAlignment» в настройках. Дополнительную информацию о настройках фонового изображения можно найти в нашей документации.
Функции
аргументы командной строки wt.exe
Вы можете запустить свой терминал в определенной конфигурации с помощью команды wt.exe. Некоторые параметры, которые вы можете установить, — это расположение вкладок и панелей, а также их начальные каталоги и профили. Вы можете сохранить настраиваемую команду как ярлык и закрепить ее на панели задач, чтобы открыть желаемую конфигурацию.
Если вы используете команду wt.exe внутри палитры команд, она вступит в силу в вашем текущем окне терминала, вместо того, чтобы запускать новый экземпляр терминала.
В этом примере профиль PowerShell откроется в текущем рабочем каталоге на новой вкладке с вертикальной панелью, на которой будет запущен ваш профиль по умолчанию.
Full documentation about wt command line arguments can be found on our docs site.
Панели
Терминал Windows поддерживает панель для профилей. Вы можете открыть новую панель профиля, удерживая Alt и щелкнув профиль в раскрывающемся списке, или используя следующие сочетания клавиш:
- Автоматическое разделение панели текущего профиля: Alt + Shift + D
- Горизонтальное разделение панели профиля по умолчанию: Alt + Shift + Minus
- Вертикальное разделение панели профиля по умолчанию: Alt + Shift + Plus
Вы также можете перемещать фокус по панелям, удерживая Alt и используя клавиши со стрелками. Наконец, вы можете изменить размер панелей, удерживая Alt + Shift и используя клавиши со стрелками. Дополнительную информацию о панелях можно найти на нашем сайте документации.
Копи-паст
В Терминале Windows по умолчанию используются сочетания клавиш для копирования и вставки Ctrl + C и Ctrl + V , соответственно. Если у вас нет выделения, Ctrl + C будет действовать как обычно, как команда break.
Вы можете настроить, какие клавиши вы хотите использовать для «копировать» и «вставить» , редактируя привязки клавиш. Если вы удалите эти привязки клавиш из файла settings.json, терминал по умолчанию будет использовать Ctrl + Shift + C и Ctrl + Shift + V . Это может быть особенно полезно для пользователей WSL, которым нужны свободные Ctrl + C и Ctrl + V для своих оболочек.
Вы также можете выбрать, какое форматирование копируется в буфер обмена вместе с символами новой строки с помощью действий «copyFormatting» и «singleLine» , связанных с командой копирования. Полную документацию по командам интеграции с буфером обмена можно найти на нашем сайте документации.
Определение привязок клавиш и действий
Большая часть настраиваемых свойств внутри Windows Terminal зависит от привязок клавиш и действий. Команды внутри массива «actions» будут автоматически добавлены в вашу палитру команд. Если вы хотите также использовать их с привязками клавиш, вы можете добавить к ним «ключи» , чтобы вызывать их с клавиатуры. Полный список всех возможных команд можно найти на странице действий нашего сайта документации.
Отправка команд input
Терминал Windows дает вам возможность отправлять input в вашу оболочку с привязкой клавиш. Это можно сделать с помощью следующей структуры внутри массива «actions» .
Отправка ввода в оболочку с помощью сочетания клавиш может быть полезна для часто выполняемых команд. Одним из примеров может быть очистка экрана:
Также может быть полезен переход к родительскому каталогу с привязкой клавиш.
Вы также можете использовать эту функцию для запуска сборок или тестовых сценариев.
Начальный каталог WSL
, вы можете добавить следующую строку в настройки своего профиля, заменив DISTRONAME и USERNAME соответствующими полями.
How to change the theme in Windows Terminal
Source: Windows Central
Windows Terminal is the best terminal app for Windows 10 for a number of reasons. The open-source tool built out by Microsoft can seamlessly operate a number of different shells at the same time. It can also operate a different visual theme for each of those shells and there’s room to go wild with your designs.
White text on a black background is fine, but you’re really missing out. After all, why not make your environment as pleasing as possible to look at?!
If this sounds interesting, here’s how to get started customizing your Windows Terminal.
How to change your Windows Terminal theme
Source: Windows Central
To get you started there are a number of built-in themes that you can switch to. Right now, any changes to themes involve making amendments to the settings.json file, though in a future release there will also be a settings UI to do this.
To get a feel for things, changing to one of the stock themes is easy.
- Open Windows Terminal
- From the dropdown, select settings.
- The settings.json file will open up in your default text editor.
From here on out you need to add the theme information to whichever shell you want to change. It will follow this template:
In Windows Terminal as standard you can choose any of the following themes:
- Campbell
- Campbell Powershell
- Vintage
- One Half Dark
- One Half Light
- Tango Dark
- Tango Light
So, for example, to amend PowerShell 7 to have a One Half Dark theme, your settings would look something like this:
Note, too, that if your theme is not the final line you must remember to add a comma at the end of its line. Once you’ve added the theme, simply save the file and Windows Terminal will update before your eyes.
How to add custom themes to Windows Terminal
The built-in themes aren’t the only ones you can use in Windows Terminal. If you’re feeling particularly creative you can build your own. Microsoft has a great resource with some examples to help you get started.
Essentially, you add your own scheme with the hex string for the colors you want into the schemes section, then use this as you would in the first section to add the theme to your shells.
Source: Microsoft
This example from Microsoft shows you the template to follow to create the theme in the image above:
I also recommend following the Microsoft Program Manager for Windows Terminal, Kayla Cinnamon, on social media, not only to keep up with the latest news, but also for regular amazing theme ideas.
How to change the background image in Windows Terminal
Source: Windows Central
You can also add a background image to your Windows Terminal shells, either as part of or instead of, a full theme. It’s very easy and all you need is your picture and its file location.
To then add this to Windows Terminal, follow these steps.
- Open Windows Terminal
- From the dropdown, select settings.
- The settings.json file will open up in your default text editor.
Locate the shell you wish to change and then add the image with this template:
You should then end up with something that looks like this:
Save the file and your background image should now be attached to your shell.
The fun doesn’t stop there, though, and if you’re using a full background image you probably want to tone it down a little. We can do that by adding an opacity value such as this:
This then tones down the background image and you’re left with something less distracting that doesn’t overpower the text.
Windows Terminal also supports Acrylic effects, and you can use this either on its own or in conjunction with your background image like this:
Source: Windows Central
The image above is a result of adding a background image, opacity, and enabling the Acrylic effect. All of the settings combined will look something like this:
Even when the settings UI is integrated, users of Windows Terminal will be able to make manual changes to the JSON like this, and it’s on the roadmap for an import/export feature to allow even easier sharing of themes among the community.
Windows Terminal
This tool can be used for command-line tools, Command Prompt, PowerShell, and the Windows Subsystem for Linux. It has multiple tabs for easy navigation and several other handy features.
We may earn a commission for purchases using our links. Learn more.
Halo: MCC’s live service elements make it better, not worse
Halo: The Master Chief Collection is more popular than ever, but some fans don’t agree with the live service approach 343 Industries has taken with it. Here’s why those elements are, at the end of the day, great for the game and for Halo overall.
Microsoft’s Surface Duo is not ‘failing up’
Microsoft announced this week that it was expanding Surface Duo availability to nine new commercial markets. While Surface Duo is undoubtedly a work in progress, this is not a sign of a disaster. It’s also doesn’t mean that Surface Duo is selling a ton either. Instead, the reason for the expansion is a lot more straightforward.
Here’s what you can do if Windows 10 update KB5001330 is causing issues
In this guide, we’ll show you the steps to get rid of the update KB5001330 to fix profile, gaming, and BSoD problems with the Windows 10 October 2020 Update and May 2020 Update.
These are the best PC sticks when you’re on the move
Instant computer — just add a screen. That’s the general idea behind the ultra-portable PC, but it can be hard to know which one you want. Relax, we have you covered!