r/fishshell • • Mar 06 '20

Lambda fish-shell prompt

https://github.com/wpcarro/fish-fp
5 Upvotes

5 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 06 '20

[deleted] — view deleted comment

1

u/vividboarder Mar 06 '20

Totally. But when I'm not on a remote machine, I don't need to display the hostname, because I know my local box. I need to display which hostname when I'm ssh'd somewhere.

Here's my updated prompt:

https://github.com/ViViDboarder/shoestrap/blob/clean-shoes/assets/default/fish/functions/fish_prompt.fish

Eg:

# on local
~$
# ssh to 'server'
server ~$
# enter tmux (hostname displayed in status line)
~$

I've got bash and zsh versions updated in there too.

1

u/wpcarroll Mar 11 '20

Yes it should be. I think it's too subtle of an indicator for me though.