diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2021-07-04 21:32:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 15:32:58 -0400 |
commit | cea1a1ceb1636b8941b3c8e7bdd8d6284d737281 (patch) | |
tree | 15d66f02b8c0721717f60728cdf37fea837142eb /src/init/mod.rs | |
parent | 196cc8aa3980d67e8ddb0d80bbdd92720adc0aec (diff) |
feat: add support for nu shell (#2847)
Diffstat (limited to 'src/init/mod.rs')
-rw-r--r-- | src/init/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init/mod.rs b/src/init/mod.rs index ed9c61535..dfe360b43 100644 --- a/src/init/mod.rs +++ b/src/init/mod.rs @@ -168,6 +168,7 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> { r#"eval `({} init tcsh --print-full-init)`"#, starship.sprint_posix()? ), + "nu" => print_script(NU_INIT, &StarshipPath::init()?.sprint_posix()?), _ => { let quoted_arg = shell_words::quote(shell_basename); println!( @@ -180,6 +181,7 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> { * powershell\\n\ * tcsh\\n\ * zsh\\n\ + * nu\\n\ \\n\ Please open an issue in the starship repo if you would like to \ see support for %s:\\nhttps://github.com/starship/starship/issues/new\\n\\n\" {0} {0}", @@ -248,6 +250,8 @@ const ELVISH_INIT: &str = include_str!("starship.elv"); const TCSH_INIT: &str = include_str!("starship.tcsh"); +const NU_INIT: &str = include_str!("starship.nu"); + #[cfg(test)] mod tests { use super::*; |