A lightweight Fish shell extension to indicate private mode sessions in your prompt with a ghost icon π». Each terminal session is tracked independently, and the icon can show a per-terminal activity count.
- Private mode indicator: Shows a ghost icon
π»in the prompt for private Fish sessions. - Per-terminal session tracking: Counts actions/outputs per terminal, independent of other terminals.
- Customizable behavior via universal variables: control symbol and count display.
- Automatic prompt wrapping: Works with any Fish prompt without modifying it manually.
Install using fisher:
fisher install devmor-j/private.fishFish will automatically detect private mode and display the ghost icon in your prompt.
| Variable | Default | Description |
|---|---|---|
private_symbol |
π» |
The icon used for private sessions. |
private_show_count |
true |
Show a numeric count next to the ghost icon. |
You can override defaults by setting these variables in your Fish config (config.fish) before loading private.fish. Example:
set -U private_symbol "π"
set -U private_show_count falseHere are some emojis you can use for privacy indicators:
- π» Ghost (default)
- π Lock
- π Key
- ποΈ Old Key
- π Closed Lock With Key
- π‘οΈ Shield
- π΅οΈββοΈ Detective
- πΆοΈ Sunglasses / Incognito
- π House / Private Space
- π Hidden Note
- π See-No-Evil Monkey
- π Fish
- π Tropical Fish
- π‘ Pufferfish
- π¬ Dolphin
- π¦ Shark
- π Octopus
- Open a Fish terminal in private mode:
fish -P
# or fish --private- Youβll see the ghost icon
π»in your prompt. - If you have multiple commands recorded in the session and
private_show_count=true, the icon will show the count, e.g.,π»3. - Each terminal is independent, so counts donβt interfere with each other.
MIT License. Free to use and modify.
This plugin was developed with AI assistance; Expect bugs and compatibility issues until they are fixed.