Plugin solutions to enable shell integration on Windows Terminal for various shells. For more information on shell integration in Windows Terminal, you can go here.
Disclaimer: The plugin solutions described in this page are only those which are not available on the link above.
- About wt-shell-integration plugin
- Installing the plugin
- zsh
- bash
- PowerShell
If you have oh-my-zsh
, go here. Otherwise:
-
Run the following command:
curl -s "https://raw.githubusercontent.com/digitalguy99/wt-shell-integration/main/oh-my-zsh/wt-shell-integration.plugin.zsh" | sed -n '/PROMPT=/s/^[ \t]*//p' >> ~/.zshrc
-
Reload your zsh configuration:
. ~/.zshrc
-
Run the following command:
curl -L https://api.github.com/repos/digitalguy99/wt-shell-integration/tarball/main | tar -xz --wildcards --strip=2 --one-top-level=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/wt-shell-integration '*/oh-my-zsh/*'
-
Add
wt-shell-integration
to plugin in~/.zshrc
-
Reload zsh configuration:
. ~/.zshrc
-
Run the following command:
curl -kL https://api.github.com/repos/digitalguy99/wt-shell-integration/tarball/main | tar -xz --wildcards --strip=2 --one-top-level=${BASH_CUSTOM:-~/.oh-my-bash/custom}/plugins/wt-shell-integration '*/oh-my-bash/*'
-
Add
wt-shell-integration
plugin in~/.bashrc
-
Reload bash configuration:
. ~/.bashrc
-
Run PowerShell as Administrator.
-
Install the module:
Install-Module wt-shell-integration -AllowClobber
-
Run the following:
Import-Module wt-shell-integration; ac $profile "`nImport-Module wt-shell-integration" -encoding utf8 -nonewline