reujab / silver

A cross-shell customizable powerline-like prompt with icons
MIT License
453 stars 30 forks source link

nested dir aliases show no icon #7

Closed bugabinga closed 5 years ago

bugabinga commented 5 years ago

Given the following config (fish):

set SILVER status:black:white dir:blue:black git:green:black cmdtime:magenta:black
set -x SILVER_DIR_LENGTH 1
set -x SILVER_DIR_ALIASES $HOME/Workspace:\ue796:$HOME/Workspace/go:\ue627
set -x SILVER_SHELL fish
eval (silver init)

I expected to see the go icon when navigating to ~/Workspace/go. But the prompt shows: /go  1ms

I am unsure if the output should be <workspace icon>/<go icon> or simply <go icon>.

Note: The home directory seems to be a special case here...

reujab commented 5 years ago

Fixed in v1.0.6. Thanks for reporting this.

bugabinga commented 5 years ago

I thank you!