Skip to content

Commit

Permalink
feat(fish): Update starship's transient prompt renderer to include di…
Browse files Browse the repository at this point in the history
…rectory
  • Loading branch information
mrjones2014 committed May 28, 2024
1 parent 17a4003 commit 3f5e1f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home-manager/modules/starship.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ lib, isServer, ... }: {
programs.fish.functions.starship_transient_prompt_func = ''
set -l dir $(starship module directory)
set -l dir $(string trim "$dir")
echo "$dir $(printf "\e[1;32m❯\e[0m ")"
'';
programs.starship = {
enable = true;
enableTransience = true;
Expand Down

0 comments on commit 3f5e1f8

Please sign in to comment.