Take default shell from config and $SHELL
#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "lilithium-hydride/piss:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Force-feeding
fish
to unsuspecting users is cruel and unusual. piss should now check the config file for a path to a shell. If the shell path in the config is empty, it will use$SHELL
on Unix-y systems andC:\Windows\System32\cmd.exe
on windows systems.@ -45,0 +49,4 @@
match std::env::consts::OS {
"windows" => r#"C:\Windows\System32\cmd.exe"#.to_string(),
"linux" | "openbsd" | "netbsd" | "dragonfly" | "solaris" | "macos" | _ =>
std::env::var("SHELL").unwrap_or("/bin/sh".to_string())
Can you move the catch-all
_
case to another branch, to panic with anunimplemented!("Unreognized operating system; cannot get user's shell")
?Wonderful, thank you. :) I especially like the new
SystemConfig
section. That'll definitely come in handy.