Skip to content

Commit

Permalink
Add fish shell instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
glfmn committed Sep 17, 2019
1 parent 8561b25 commit 624fa96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ precmd() { print -rP "$(glit "$GIT_FMT" -b -e "$PS1_FMT")" }
PROMPT="%# "
```
### fish
Replace your `~/.config/fish/functions/fish_prompt.fish` file with:
```fish
function fish_prompt
# format used in git repositories
set git "#y('"(prompt_pwd)"')' '\[#c(#*(\b)\B(#~('@'\{\+\-})))]' '\{\{#g(\M\A\R\D)#r(\m\a\u\d)}}'\n➟ '"
# fallback format used outside of git repositories
set ps1 "#y('"(prompt_pwd)" ')'➟ '"

echo -e (glit $git -e $ps1)
end
```
# Customizing your format
Glitter provides a flexible expression language which is easy to use and easy to prototype with:
Expand Down

0 comments on commit 624fa96

Please sign in to comment.