Skip to content

Commit

Permalink
Add PowerShell version 7 #199
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Bossert <[email protected]>
  • Loading branch information
anb0s committed Jan 15, 2022
1 parent b4d3c31 commit af0eb93
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ static public void addCommandsDefault(CommandDataList list) {
}

private static void addCommandsConsole(CommandDataList list) {
// Windows Pwsh - PowerShell 7
list.add(new CommandData("6245f20a-cfd0-457b-a101-a29eeefd22b5", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7", ResourceType.resourceTypeFileOrDirectory, false, null, Category.categoryOpen, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process -WorkingDirectory '${easyshell:container_loc}' pwsh\""));
list.add(new CommandData("9fbc5abb-0b82-4fbb-9907-99d6709d0126", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process pwsh -ArgumentList '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("5543176e-e29c-4a7a-b388-f393531d78dc", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7 (hold)", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process pwsh -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("d84633fa-57cb-4965-b92e-2b164d47a6ed", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7 as Admin", ResourceType.resourceTypeFileOrDirectory, false, null, Category.categoryOpen, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process pwsh -Verb RunAs -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc}'\""));
list.add(new CommandData("1e47f558-7e01-4c69-9ffb-927d67fcbff5", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7 as Admin", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process pwsh -Verb RunAs -ArgumentList '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("d26d52ce-46b1-49bc-a84b-f5e5c6d7a705", PresetType.presetPlugin, OS.osWindows, "Pwsh - PowerShell 7 as Admin (hold)", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"pwsh -command \"Start-Process pwsh -Verb RunAs -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
}

private static void addCommandsFileBrowser(CommandDataList list) {
Expand Down
10 changes: 5 additions & 5 deletions plugin/uuids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ cd32fa5a-34d7-4551-8bd0-3aae0dc444d0 // reused: was MAC OS X clipboard before (i
e6de32cc-342a-46a0-a766-ac74e7e4000d
95cacf98-9dfc-473f-b5d3-fe4961e66ae1
5ca27361-092a-4955-b8b4-0db7b6d6f1ba

Do not use
-

Free
6245f20a-cfd0-457b-a101-a29eeefd22b5
9fbc5abb-0b82-4fbb-9907-99d6709d0126
5543176e-e29c-4a7a-b388-f393531d78dc
d84633fa-57cb-4965-b92e-2b164d47a6ed
1e47f558-7e01-4c69-9ffb-927d67fcbff5
d26d52ce-46b1-49bc-a84b-f5e5c6d7a705

Do not use
-

Free
dc8dd567-6ac0-49ec-8fcd-ed61e677ea3d
434dfc65-4efd-42e1-be5a-f108661e51a1
840831f3-fb2f-45f3-8db4-14007757d576
Expand Down

0 comments on commit af0eb93

Please sign in to comment.