|
|
string | terminal_settings_path = f"{os.environ['LOCALAPPDATA']}\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json" |
| |
|
dictionary | prefix_dict = {ShellType.cmd: "opalsShell", ShellType.pwsh: "opalsPowerShell"} |
| |
|
| default_dir = os.path.normpath(os.path.join(__file__, "..", "..", "..")) |
| |
| | parser |
| |
|
| default |
| |
|
| nargs |
| |
|
| help |
| |
|
| action |
| |
|
| choices |
| |
|
| args = parser.parse_args() |
| |
|
| install_dir = args.directory |
| |
|
| shell = ShellType[args.shell] |
| |
|
def | label = get_label(install_dir) |
| |
Helper script to add or remove opalsShell to the Terminal App