Skip to content

Commit

Permalink
add Windows Terminal App presets #191
Browse files Browse the repository at this point in the history
- Open Windows Terminal
- Run with Windows Terminal
- Run with Windows Terminal (hold)

Signed-off-by: Andre Bossert <anb0s@anbos.de>
  • Loading branch information
anb0s committed Apr 3, 2021
1 parent 59fbd8b commit b075af2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions plugin/scripts/cmd/test.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off

@echo Hello, World!

pause
2 changes: 2 additions & 0 deletions plugin/scripts/powershell/test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Write-Host 'Hello, World!'
Read-Host
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ private static void addCommandsConsole(CommandDataList list) {
"powershell.exe -command \"Start-Process powershell -Verb RunAs -ArgumentList '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("160086ae-dd6d-46b2-8929-f4122048d04d", PresetType.presetPlugin, OS.osWindows, "PowerShell as Admin (hold)", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"powershell.exe -command \"Start-Process powershell -Verb RunAs -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("1ba8590c-f331-4dd9-8473-e02989a6667a", PresetType.presetPlugin, OS.osWindows, "Windows Terminal", ResourceType.resourceTypeFileOrDirectory, false, null, Category.categoryOpen, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"wt new-tab -d \"${easyshell:container_loc}\" --title \"${easyshell:project_name}\""));
list.add(new CommandData("fa674161-726b-435c-b18d-051ea1d808a2", PresetType.presetPlugin, OS.osWindows, "Windows Terminal", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"wt new-tab -d \"${easyshell:container_loc}\" --title \"${easyshell:project_name}\" powershell -command ./\"${easyshell:resource_name}\""));
list.add(new CommandData("b8cbfd5b-9653-4667-8265-28aae9dcc0f9", PresetType.presetPlugin, OS.osWindows, "Windows Terminal (hold)", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"wt new-tab -d \"${easyshell:container_loc}\" --title \"${easyshell:project_name}\" powershell -noexit -command ./\"${easyshell:resource_name}\""));
// Windows Cygwin (Bash)
list.add(new CommandData("5b1e3806-a9ab-4866-b660-823ac388a575", PresetType.presetPlugin, OS.osWindows, "Cygwin Bash", ResourceType.resourceTypeFileOrDirectory, false, null, Category.categoryOpen, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"cmd.exe /C start \"${easyshell:project_name}\" /D ${easyshell:container_loc} \"C:\\cygwin64\\bin\\mintty.exe\""));
Expand Down
6 changes: 3 additions & 3 deletions plugin/uuids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ b38c18a3-4c78-4668-95e1-8dd01e23cd83
25a6c5a2-b6fa-4f3e-be7b-9baad543f8cb
eb3f4c11-a629-4e48-a83a-3620b82f738e
ded01a38-7f5e-4c06-94a4-c6c77373a056
1ba8590c-f331-4dd9-8473-e02989a6667a
fa674161-726b-435c-b18d-051ea1d808a2
b8cbfd5b-9653-4667-8265-28aae9dcc0f9

Linux:
51ed300a-35d0-4e67-a5f8-6ebd7012a564
Expand Down Expand Up @@ -121,9 +124,6 @@ Do not use
-

Free
1ba8590c-f331-4dd9-8473-e02989a6667a
fa674161-726b-435c-b18d-051ea1d808a2
b8cbfd5b-9653-4667-8265-28aae9dcc0f9
6245f20a-cfd0-457b-a101-a29eeefd22b5
9fbc5abb-0b82-4fbb-9907-99d6709d0126
5543176e-e29c-4a7a-b388-f393531d78dc
Expand Down

0 comments on commit b075af2

Please sign in to comment.