diff --git a/home/common/fish.nix b/home/common/fish.nix index cc620c9..d485bec 100644 --- a/home/common/fish.nix +++ b/home/common/fish.nix @@ -101,30 +101,41 @@ end # Generate prompt - jj log --ignore-working-copy --no-graph --color always -r @ -T ' - separate( - " ", - change_id.shortest(), - coalesce( - surround( - "\"", - "\"", - if( - description.first_line().substr(0, 24).starts_with(description.first_line()), - description.first_line().substr(0, 24), - description.first_line().substr(0, 23) ++ "…" - ) - ), - "(no description set)" - ), - bookmarks.join(", "), - commit_id.shortest(), - if(conflict, "(conflict)"), - if(empty, "(empty)"), - if(divergent, "(divergent)"), - if(hidden, "(hidden)"), - ) - ' + jj log --ignore-working-copy --no-graph --color never -r @ -T ' + surround( + " \e[2;3m", + "\e[0m", + separate( + " ", + bookmarks.join(", "), + coalesce( + surround( + "\"", + "\"", + if( + description.first_line().substr(0, 24).starts_with(description.first_line()), + description.first_line().substr(0, 24), + description.first_line().substr(0, 23) ++ "…" + ) + ), + "…" + ), + surround( + "\e[0;1;35m", + "\e[0;2;3m", + change_id.shortest(), + ), + surround( + "\e[0;34m", + "\e[0;2;3m", + commit_id.shortest(), + ), + if(conflict, "(conflict)"), + if(empty, "…)"), + if(divergent, "(divergent)"), + if(hidden, "(hidden)"), + ) + ) ''; fish_prompt.body = ''