From 6dfd9c639e75500d7bf22f5213f7648409b069a3 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 11 Nov 2021 11:54:50 -0500 Subject: [PATCH] profiles/shells/nushell: add nushell --- users/profiles/shells/all.nix | 1 + users/profiles/shells/nushell.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 users/profiles/shells/nushell.nix diff --git a/users/profiles/shells/all.nix b/users/profiles/shells/all.nix index 7fee820..b0a7789 100644 --- a/users/profiles/shells/all.nix +++ b/users/profiles/shells/all.nix @@ -3,5 +3,6 @@ ./bash.nix ./fish.nix ./zsh.nix + ./nushell.nix ]; } diff --git a/users/profiles/shells/nushell.nix b/users/profiles/shells/nushell.nix new file mode 100644 index 0000000..b4fa4fd --- /dev/null +++ b/users/profiles/shells/nushell.nix @@ -0,0 +1,15 @@ +{ ... }: { + programs.nushell = { + enable = true; + settings = { + complete_from_path = true; + ctrlc_exit = true; + startup = [ + "mkdir ~/.cache/starship" + "starship init nu | save ~/.cache/starship/init.nu" + "source ~/.cache/starship/init.nu" + ]; + prompt = "starship_prompt"; + }; + }; +}