Questions tagged [fish]
The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.
190
questions
0
votes
0
answers
19
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
28
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
93
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 ...
0
votes
2
answers
220
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
125
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 .
...
3
votes
1
answer
132
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 ...
0
votes
1
answer
123
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 ...
0
votes
1
answer
666
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 ...
0
votes
1
answer
523
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?
3
votes
1
answer
3k
views
how to move ssh-key related files to another directory?
i've been trying to clean up my root directory so that it isn't clustered with random dotfiles. nonetheless, on setting up the ssh-key i came to a dead-end, where i wouldn't find a way to migrate ...
5
votes
2
answers
906
views
How to split a string (of arguments) in fish?
I want to split "-r --run" into "-r" and "--run"
for
string split " " "-r --run"
I get
string split: -r --run: unknown option` as an error
It is ...
3
votes
2
answers
1k
views
How to save abbreviation in fish?
Running abbr --add ro rpm-ostree will set the abbreviation and it works as expected. But once I exit the shell with exit and then re-enter the shell by typing fish again, all abbreviations are lost. ...
0
votes
1
answer
690
views
Can't change terminal colors for prompts in Ubuntu on Windows Terminal
I run Ubuntu with fish using wsl on Windows Terminal. I have color scheme configured correctly and it seems that all the colors are changed except for the prompt colors. It remains red on typing and ...
1
vote
1
answer
457
views
Fish shell: Map jk to enter normal mode (in vi mode)
While using vi keybindings in fish shell, is it possible to map jk to enter Normal mode? Currently Escape is used for doing that but I want to change (or add a new way) to do so.
0
votes
1
answer
304
views
Hardcoding current path to alias
I am developing a simple cli-application for timetracking. The idea is to have fish-aliases source r-scripts to create timestamps in a timetable. Like so:
alias checkin='rscript (echo $PWD/checkin.R)'
...