-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Elvish's syntax is not compatible with other POSIX shells, the prompt is generated more dynamically. For now I think it's better to leave it to the users to decide what to put inside the prompt.
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use anyhow::Result; | ||
use std::process::Command; | ||
|
||
use crate::shell::ShellSpawnInfo; | ||
|
||
pub fn spawn_shell(info: &ShellSpawnInfo) -> Result<()> { | ||
let mut cmd = Command::new("elvish"); | ||
info.env_vars.apply(&mut cmd); | ||
let _ = cmd.status()?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters