Skip to main content

Questions tagged [fish]

The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.

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, ...
Brendan Mesters's user avatar
0 votes
1 answer
27 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 ...
vr8ce's user avatar
  • 101
1 vote
2 answers
92 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 ...
Anthony Naddeo's user avatar
0 votes
2 answers
215 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 ...
Adrian's user avatar
  • 214
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 . ...
Rashiq's user avatar
  • 171
3 votes
1 answer
130 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 ...
Evan's user avatar
  • 31
0 votes
1 answer
122 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 ...
phper's user avatar
  • 105
0 votes
1 answer
663 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 ...
user3690467's user avatar
0 votes
1 answer
521 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?
sjdh's user avatar
  • 111
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 ...
Lanny's user avatar
  • 33
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 ...
RHOOPH's user avatar
  • 123
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. ...
RHOOPH's user avatar
  • 123
0 votes
1 answer
686 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 ...
Peter S.'s user avatar
  • 101
1 vote
1 answer
453 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.
GoodBoyNeon's user avatar
0 votes
1 answer
303 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)' ...
s_dav's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
13