We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31921e6 commit 48f4e10Copy full SHA for 48f4e10
crates/q_cli/src/cli/chat/tools/execute_shell_commands.rs
@@ -92,7 +92,7 @@ impl ExecuteShellCommands {
92
93
pub async fn invoke(&self, mut updates: impl Write) -> Result<InvokeOutput> {
94
// Detect the user's default shell
95
- let shell = std::env::var("$0").unwrap_or_else(|_| "bash".to_string());
+ let shell = std::env::var("SHELL").unwrap_or_else(|_| "bash".to_string());
96
97
let home = std::env::var("HOME").unwrap_or_else(|_| "~".to_string());
98
let shell_init_file = match shell.as_str() {
0 commit comments