dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2022-04-25 11:04:27 +0100 +0100
Committer: Kyle Fuller <kyle.fuller@oracle.com> 2022-04-25 11:04:27 +0100 +0100
Commit: 1d1d35120114e2d22123784c47fff9c5079c2544
Parent: 95b6194b85ba86f034a4300b1b0d46dc5ceea8d0


feat(fish): show `$REGION` in PS1 line
diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish
index 0ab1293f39675c9c7fe07e70c6459a2ed80dc2a4..126ad711f933b2638bb1b70b660bc98b75c02d13 100644
--- a/.config/fish/functions/fish_prompt.fish
+++ b/.config/fish/functions/fish_prompt.fish
@@ -1,4 +1,9 @@
 function fish_prompt
+    if test -n "$REGION"
+        set_color FF69B4
+        echo -n "[$REGION] "
+    end
+
     if not test $status -eq 0
         set_color $fish_color_error
     else if test -n "$SSH_TTY"