Skip to content

Commit

Permalink
#76: Settings: Change "default_shell" to "default_shells".
Browse files Browse the repository at this point in the history
  • Loading branch information
Taitava committed Oct 25, 2021
1 parent 6950fde commit 489f49a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export default class ShellCommandsPlugin extends Plugin {

public getDefaultShell(): string {
let operating_system = getOperatingSystem()
let shell_name = this.settings.default_shell[operating_system]; // Can also be undefined.
let shell_name = this.settings.default_shells[operating_system]; // Can also be undefined.
if (undefined === shell_name) {
shell_name = getUsersDefaultShell();
}
Expand Down
4 changes: 2 additions & 2 deletions src/settings/ShellCommandsPluginSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {ShellCommandsConfiguration} from "./ShellCommandConfiguration";

export interface ShellCommandsPluginSettings {
default_shell: IPlatformSpecificString;
default_shells: IPlatformSpecificString;
working_directory: string;
preview_variables_in_command_palette: boolean;
shell_commands: ShellCommandsConfiguration;
Expand All @@ -15,7 +15,7 @@ export interface ShellCommandsPluginSettings {
}

export const DEFAULT_SETTINGS: ShellCommandsPluginSettings = {
default_shell: {},
default_shells: {},
working_directory: "",
preview_variables_in_command_palette: true,
shell_commands: {},
Expand Down
2 changes: 1 addition & 1 deletion src/settings/ShellCommandsSettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ShellCommandsSettingsTab extends PluginSettingTab {
;

// Platforms' default shells
createShellSelectionField(this.plugin, containerEl, this.plugin.settings.default_shell, true);
createShellSelectionField(this.plugin, containerEl, this.plugin.settings.default_shells, true);

// A <div> element for all command input fields. New command fields can be created at the bottom of this element.
let command_fields_container = containerEl.createEl("div");
Expand Down

0 comments on commit 489f49a

Please sign in to comment.