Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PowerShell version 7 #199 #207

Merged
merged 1 commit into from
Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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