Questions tagged [fish]
The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.
190
questions
3
votes
1
answer
141
views
How do I get iTerm2's prompt to make marks when the prompt is Starship?
I've run into a situation where installing Starship breaks the iTerm2 shell integration feature of making each prompt a "mark".
The only thing Terminal.app has that iTerm doesn't for me is ...
1
vote
1
answer
266
views
Retrieve current folder on custom command on gnome-terminal
I'm using fish for some days upon Ubuntu gnome but I don't know if that's possible to keep the feature "open the terminal in a specific folder". Inside Files app, I right click inside a ...
0
votes
0
answers
22
views
curser desync when connecting to a fish shell on a raspberry pi over ssh
This is a rather specific issue, but I wouldn't be surprised if it occurs due to some more general shortcoming.
In short, the issue is that, when using the fish shell in my Raspberry Pi, over ssh, ...
0
votes
1
answer
29
views
How do you not load fish's built-in functions?
I'm doing some experimenting with fish, and I tried looping over the subdirectories of the current directory, something I do often in bash. fish's syntax is similar, and it was easy to just echo each ...
1
vote
2
answers
97
views
Show long commands in fish (ctrl+r) history on multiple lines
I'm looking for a solution to searching history with fish when your history is full of long commands. I often have curl commands that contain json payloads in my history that I want to repeat, for ...
1
vote
3
answers
983
views
How does one inspect command history in fish in vi mode?
I'm a new user to Fish. I use vi command line bindings. I understand from various places (like here and the issue comments here, for instance) that history search and recall can lack certain bindings ...
0
votes
2
answers
234
views
alias doesn't work in fish shell on macOS
I've been struggling with an issue that I cannot find mentioned anywhere and I cannot trace down. I can't leverage any of the alias command functionality in fish, which also breaks fish integrations ...
0
votes
1
answer
126
views
How to view a folder with the name of "."?
A folder that is named ".", just dot and nothing else, does not appear in dolphin or krusader file managers.
ls -a shows the folder.
Terminal output:
drwxrwxrwx - root 29 Feb 17:05 .
...
6
votes
3
answers
14k
views
how to run ssh-agent in fish shell?
I was running eval `ssh-agent -s\`
I get this error
fish: Unknown command: `ssh-agent
1
vote
3
answers
354
views
Can a fish script distinguish between being sourced and executed?
I have a fish script that exports some variables and launches a command at the end. I'd like to be able to source this file to bring these variables into the current shell session, but without ...
0
votes
1
answer
126
views
Is it possible to manipulate shell input to wrap commands?
I would like to call a function when a command is entered and modify it
for example if a user enters this command
touch foo.txt
I want to manipulate it to run
sudo -u user touch foo.txt
The reason ...
17
votes
5
answers
21k
views
How do you "source" a file in fish?
I'd like to use keychain with the fish shell, but I'm not sure how to get fish to load the ~/.keychain/hostname-fish file to set the appropriate environment variables.
In bash, there's the "source" ...
0
votes
1
answer
682
views
Windows Terminal - Start a new tab using the cli and run a command with fish
I am using the wt.exe CLI to run some WSL commands in a new tab. However, I seem to be getting some weird error when using Fish shell.
The command:
wt.exe --window 0 new-tab -p Ubuntu /usr/bin/fish -C ...
67
votes
3
answers
57k
views
Is there any way to get bash to have syntax highlighting like fish?
In the fish shell, the actual command line is syntax highlighted:
Is there any way to get this same behavior in bash?
There is something just like this but for zsh, not bash. Is it possible that ...
0
votes
1
answer
537
views
How to resolve fish: "Unable to open universal variable file '/': Permission denied"?
Fish gives frequent warnings
error: Unable to open universal variable file '/': Permission denied
What causes this, and how can it be resolved?