summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2025-07-02 08:30:33 -0300
committerLeonardo Santiago <[email protected]>2025-07-02 08:30:33 -0300
commitfd29cbf7c014e88122e3879f6a9a69ff7e922be9 (patch)
treeadc611469b768621b7c20c6b86b0664ea19d891f
parenta3837014fa3a6170fa9a0ec55ec84c64553086e0 (diff)
chore: change left prompt to be manual one
-rw-r--r--modules/home/nushell.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/home/nushell.nix b/modules/home/nushell.nix
index 771ab8e..cbe4790 100644
--- a/modules/home/nushell.nix
+++ b/modules/home/nushell.nix
@@ -30,8 +30,11 @@ in {
$"\e]($arg)\e\\"
}
}
+ def get-pwd-repr [] {
+ "~" | path join (pwd | path relative-to $env.HOME)
+ }
def create_left_prompt [] {
- ${pkgs.starship}/bin/starship prompt --cmd-duration $env.CMD_DURATION_MS $'--status=($env.LAST_EXIT_CODE)'
+ $"[(hostname)] (get-pwd-repr) "
}
# Output text prompt that vterm can use to track current directory
export def left-prompt-track-cwd [] {
@@ -41,7 +44,7 @@ in {
use vprompt
$env.PROMPT_COMMAND = {|| vprompt left-prompt-track-cwd }
$env.PROMPT_COMMAND_RIGHT = ""
- $env.PROMPT_INDICATOR = ""
+ $env.PROMPT_INDICATOR = ":: "
'';
};
};