aboutsummaryrefslogtreecommitdiff
path: root/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2026-09-21 23:09:33 +0200
committermirenn <me@mirenn.dev>2026-10-06 14:13:32 +0200
commit8f9c77878f8742a47d34a50748023d1b552cfbf1 (patch)
treef749dff061451ab8427100c452f8175de8e39c53 /mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
parent8501a38d7c3bbc2e99466e6658be134c72d4f47a (diff)
downloaddotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.tar.gz
dotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.zip
guix primer
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish')
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish b/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..e0df61e
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
@@ -0,0 +1,7 @@
+function fish_prompt
+ printf (if fish_is_root_user
+ echo '%s%s%s # '
+ else
+ echo '%s%s%s $ '
+ end) (set_color $fish_color_cwd) (prompt_pwd --full-length-dirs 5) (set_color normal)
+end