本地终端运行的程序可以写路径或命令,带参数;输入框右端的下拉列出装了的常用 shell (zsh、bash、sh、fish、nu、pwsh,从 /etc/shells、PATH 和 Homebrew 目录找),旁边 「选择文件…」用系统的文件选择框。留空是自动检测,新开和重新启动的本地终端生效。 只写一个 shell 时和默认一样按登录 shell 启动,带参数或不是 shell 的照写执行。 Windows 的默认 shell 原来是 cmd.exe,现在先用 PowerShell 7,其次 Windows PowerShell, 都没有才用 cmd.exe。 工作区改为每次打开、重启本地终端时向 LocalTerminalTransportProvider 要 factory, UI 测试注入的 FixedLocalTerminalTransportProvider 记下每次要的 shell。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
661 B
Rust
21 lines
661 B
Rust
//! 设置: the settings tab, the settings it edits and how they are applied.
|
|
|
|
mod app_theme;
|
|
mod apply;
|
|
mod highlight_rules;
|
|
mod local_shell_editor;
|
|
mod model;
|
|
mod settings_panel;
|
|
mod shortcuts_editor;
|
|
mod store;
|
|
mod terminal_themes;
|
|
|
|
pub use apply::apply;
|
|
pub use model::{
|
|
AnalyticsSettings, AppSettings, Appearance, Choice, ExternalCliSettings, InterfaceLanguage,
|
|
LocalTerminalSettings, NotificationSettings, TerminalFontSettings, TerminalHighlightSettings,
|
|
TerminalThemeSettings, UpdateSettings, WindowSettings,
|
|
};
|
|
pub use settings_panel::{SettingsPanel, SettingsPanelEvent};
|
|
pub use store::{SettingsProblem, SettingsStore, SettingsStoreEvent};
|