matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
963 stars 79 forks source link

Add option to set root user prompt symbol #89

Open matchai opened 5 years ago

matchai commented 5 years ago

Feature Request

Add configuration options to set the prompt character for the root user:

The prompt defaults to $SPACESHIP_CHAR_SYMBOL, so this change should not alter the current behavior and not affect any users that don't change those vars.

Describe the solution you'd like A port of the existing implementation in the following Spaceship PR: https://github.com/denysdovhan/spaceship-prompt/pull/461

kulabun commented 5 years ago

There is not such thing like secondary prompt in fish and doesn't seems to appear in nearest future: https://github.com/fish-shell/fish-shell/issues/3382 So this feature will only include: SPACESHIP_CHAR_SYMBOL SPACESHIP_CHAR_SYMBOL_ROOT

matchai commented 5 years ago

Good catch @kulabun! 👀 I'll update the issue to suit what would be possible in fish.