All Questions
8
questions
1
vote
1
answer
2k
views
FISH - How to hide hostname/computer from prompt?
For context, I am using FISH 3.1.0.
I looked in fish_config, but none of the prompt options just remove the hostname/computer while keeping the rest the same.
Is there a way to keep most of the ...
1
vote
1
answer
1k
views
tmux changes shell prompt
Ubuntu 20.04 (running inside VirtualBox, if that's important.)
tmux 3.0a (installed via apt)
fish 3.4 (and earlier 3.3)
starship.rs 1.1.1
Font: FiraCode Mono
I have configured my prompt to look as ...
6
votes
1
answer
3k
views
What's the easiest way to prepend the current time to the fish prompt?
I'd like to see the current time in my fish prompt so that I can always see for example when I started the last command. I don't want to install extensions.
3
votes
3
answers
2k
views
Powerline and Fish: How can I remove the large whitespace between the shell prompt and cursor?
I recently started using Arch Linux and just installed Powerline and Fish (version 3.0.0) last week. In my terminal, which is Termite (version 14), there's a large (horizontal) space between the shell ...
5
votes
1
answer
8k
views
How do I get fish shell prompt to show the hostname?
I'm attempting to make my Fish prompt look like the old Gentoo shell did.
user@hostname ~ %
where the user@hostname is green, and the $PWD and symbol were blue.
Right now it only shows: user@ ~ %, ...
1
vote
1
answer
441
views
$status in Fish prompt always prints 0
I tried to add $status to my prompt in the fish shell but it always prints 0.
This question was asked on irc a while back and i'm surprised there wasn't a answer here so i thought i'd post it here ...
2
votes
0
answers
1k
views
My custom fish shell prompt keeps resetting every reboot
I switched to fish shell a month ago and I'm quite pleased with it. But recently, my custom prompt keeps resetting to the default prompt every time I turn on my PC.
When opening the terminal, I'm ...
7
votes
1
answer
6k
views
Right and fast way to test git directory and git branch?
While trying to set up my new fish shell prompt, I ended up testing ways to get the branch name and also testing if I was on a git repository. I have found (1) git rev-parse --abbrev-ref HEAD, (2) git ...