From 58dd5371b1f26426f2c1fa53b43f4ca3efa871a5 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Sun, 19 Jul 2020 19:47:46 -0400 Subject: [PATCH] starship config (for nushell) --- nushell/starship.toml | 16 ++++++++++++++++ scripts/setup_symlinks | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 nushell/starship.toml diff --git a/nushell/starship.toml b/nushell/starship.toml new file mode 100644 index 0000000..4794186 --- /dev/null +++ b/nushell/starship.toml @@ -0,0 +1,16 @@ +# Don't print a new line at the start of the prompt +add_newline = false +prompt_order = ["directory", "git_branch", "git_status", "character"] + +# Replace the "❯" symbol in the prompt with "➜" +[character] # The name of the module we are configuring is "character" +# symbol = "➜" # The "symbol" segment is being set to "➜" +symbol = "❯" + +[directory] +truncate_to_repo = true +truncation_length = 100 + +[git_status] +prefix = "" +suffix = "" diff --git a/scripts/setup_symlinks b/scripts/setup_symlinks index 0d93bd3..7f6fa26 100755 --- a/scripts/setup_symlinks +++ b/scripts/setup_symlinks @@ -23,6 +23,10 @@ setup_symlinks() { rm -rf "$HOME/.config/nvim" ln -s "$DOTS/vim" "$HOME/.config/nvim" + # Starship + rm -rf "$HOME/.config/starship.toml" + ln -s "$DOTS/nushell/starship.toml" "$HOME/.config/starship.toml" + echo "symlinks ✓" }