Skip to content

Commit

Permalink
Improve tide conf.d function
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Apr 3, 2024
1 parent f27c6eb commit ab764c3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ of your ddev projects you can create/edit
following:

```fish
if tide --version > /dev/null && not test -f ~/.config/fish/conf.d/.mytide
tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Light --show_time=No --classic_prompt_separators=Angled --powerline_prompt_heads=Sharp --powerline_prompt_tails=Flat --powerline_prompt_style='One line' --prompt_spacing=Compact --icons='Many icons' --transient=Yes
touch ~/.config/fish/conf.d/.mytide
# Doing it as a fish_prompt event to make sure it is shown the first time it's
# run. Not sure if this is the best workaround, but otherwise the first `ddev fish`
# would show no prompt.
function mytide --on-event fish_prompt
if tide --version > /dev/null && not test -f ~/.config/fish/conf.d/.mytide
tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Light --show_time=No --classic_prompt_separators=Angled --powerline_prompt_heads=Sharp --powerline_prompt_tails=Flat --powerline_prompt_style='One line' --prompt_spacing=Compact --icons='Many icons' --transient=Yes
touch ~/.config/fish/conf.d/.mytide
end
end
```

Expand Down

0 comments on commit ab764c3

Please sign in to comment.