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.

35 questions with no upvoted or accepted answers
3 votes
1 answer
143 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
2 votes
2 answers
934 views

In fish shell, how to select with the cursor while shift is held?

In all gui text editing, ctrl-arrow moves the cursor by word, and holding shift selects as the cursor moves. Thus ctrl-shift-left selects the previous word. Fish already has the former but I want to ...
Sam S's user avatar
  • 23
2 votes
1 answer
649 views

Using Fish + NVM + Sublime results in commands not found

I'm using Fish shell/omf, NVM (https://github.com/derekstavis/plugin-nvm), and Sublime Text 3. I'm trying to use a build system to run nodemon (which I installed with npm -g install nodemon). nodemon ...
brandonscript's user avatar
2 votes
1 answer
274 views

How to get fish-style formatting with less

Let's say I run a command like ls in fish and get lots of output, how do I scroll through it and still keep the fish formatting or something like it? ls | less doesn't keep the formatting. I know ...
qwertyuiop's user avatar
2 votes
0 answers
722 views

RVM is not a function message when using fish shell

I'm trying to use rvm from within the fish shell rvm gemset use rails3 I'm getting the following error message from fish RVM is not a function, selecting rubies with 'rvm use ...' will not work. ...
bigtunacan's user avatar
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 ...
Chnossos's user avatar
  • 121
1 vote
0 answers
189 views

Is there a way to search token history rather than entire commands

The default fish or fzf implementations for ctrl-R is very helpful for looking through and replacing the prompt buffer with lines in history. Is there something similar to alt-up/down, history-token-...
Xster's user avatar
  • 2,935
1 vote
1 answer
670 views

How can I change the prompt to always show the current path?

I want to continue using the fish shell with as little changes to default setup as possible. But there is one thing that really bugs me. When the terminal window is cramped the prompt just becomes >...
user1283776's user avatar
  • 1,031
1 vote
0 answers
136 views

fish prompt returns to defaults after change in fish_config

I've been using Fish for a while and after installing Oh-My-Fish the prompt changed to the default OMF prompt. And I couldn't change to what I was using before, one of the default Fish prompts called "...
Z33DD's user avatar
  • 11
1 vote
1 answer
197 views

Setup different path for fish shell temporally

User libraries are normally in /usr/local/lib. However I want to build some third party libraries in for example /Users/user/Public/lib. I only want to do it during my testing. Is there a elegant way ...
Bagusflyer's user avatar
1 vote
0 answers
98 views

fish shell, enter long command

Given the usual size of the terminal window, short commands fit. Ex: stoqlt@desktop:~ > ls files However, typing a command that is longer than the free space after the prompt, and reaching the end ...
stoqlt's user avatar
  • 11
1 vote
0 answers
262 views

Why does fish shell create a hidden process in iTerm2

I've moved from bash to fish shell in iTerm2. However, whenever I start iTerm2, I receive the following error message: A session ended very soon after starting. Check that the command in profile ...
Long Thai's user avatar
  • 121
1 vote
0 answers
168 views

For what purpose is the '&-' file descriptor used in fish?

From the fish manual: [The File Descripter may be] an ampersand followed by a minus sign (&-). The file descriptor will be closed From the Arch wiki:. Silencing standard output: $ ...
jazmit's user avatar
  • 111
1 vote
0 answers
1k views

Creating an alias for in fish shell: The file 'vim' is not executable by this user

I'm trying to create an alias for vim to execute vimx. After creating a new terminal when I try to auto complete vi, I get the following error: fish: The file 'vim' is not executable by this user /...
travis's user avatar
  • 121
1 vote
0 answers
227 views

Fish - A way to configure it such that it does not scroll through tab completions with tab

If you have a directory structure like the below ./test/locationOne ./test/locationTwo ./test/locationThree If, with bash, or fish, you type in cd test/ then hit tab, it will autocomplete until ...
Ren's user avatar
  • 61
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, ...
Brendan Mesters's user avatar
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 ...
vr8ce's user avatar
  • 101
0 votes
1 answer
689 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
703 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
0 votes
1 answer
779 views

iTerm2 clear screen should not delete output of running command

When I used command + k the output of the actual running command was not cleared. Now with my new MacBook I don't know how to set this feature again. Has anyone an idea?
Ben Keil's user avatar
  • 101
0 votes
0 answers
109 views

Fish shell alternates between prepending ~ and > depending on which directory I am in

I'm new to using the Fish shell; however, I'm observing some strange behaviour when I navigate between directories. Below is the output of my shell. Initially, all commands are prepended with ~; ...
ptk's user avatar
  • 127
0 votes
1 answer
286 views

Is it possible to have an abbreviation in a shell anywhere in a command?

I have a directory which has a really long path. However, I use this directory constantly and I cannot move it (WSL Windows directory). I generally use z to jump around to it quickly which is useful, ...
ZackT's user avatar
  • 93
0 votes
0 answers
3k views

MobaXTerm “Follow Terminal Folder” STFP & Fish Shell

MobaXterm's "Follow Terminal Folder"/"Follow SSH Path" feature works great when remote SSH into a linux computer, it shows directory & files to the left as you work in the ...
apfsx's user avatar
  • 1
0 votes
0 answers
223 views

Can't find command after setting PATH in fish

I'm struggling to add /usr/local/bin to my PATH so I can use geckodriver, which is located in /usr/local/bin/geckodriver. I tried the to add the following to my config.fish set -U fish_user_paths /...
kachink's user avatar
0 votes
1 answer
1k views

How can I fix this error when trying to install Oh-My-Fish?

I am using fish via Cygwin on Windows 10; whenever I try to install OMF, I am presented with this error: curl -L https://get.oh-my.fish | fish.exe % Total % Received % Xferd Average Speed ...
SnookerFan's user avatar
  • 1,144
0 votes
1 answer
342 views

How to start a fish instance with a specific `config.fish`?

I want to start a particular fish instance with a specific config.fish. Something along the lines of the Bash --rcfile option. I'm aware of the XDG_CONFIG_HOME variable. But I just want to switch ...
Sylvain Leroux's user avatar
0 votes
1 answer
521 views

Fish shell doesn't return program error

In bash, if I run a program and it crashes I get some information about what went wrong, such as Segmentation fault (core dumped). In fish, I just get fish: but no message... does anyone know what the ...
Steve Heim's user avatar
0 votes
1 answer
462 views

i3wm urxvt wrapping issue when using hot key to launch. no issue when run from dmenu

Sorry for the long title. Wanted it be a little specific. I have an issue with my urxvt (rxvt-unicode) terminal emulator that's using a themed fish shell. The problem is that when I launch urxvt with ...
Evgeny Danilenko's user avatar
0 votes
1 answer
1k views

Reveal user@hostname in oh-my-fish theme

I'm trying to have the user@hostname displayed all the time in fish's bobthefish theme, no matter whether you're the default user or not. I've tried editing ~/.config/fish/functions/fish_prompt.fish, ...
Simon Fish's user avatar
0 votes
1 answer
259 views

Bad fish configuration preventing usable login to remote server

I messed up configuring my config.fish, and I now cannot use my server. Whenever I try to log in, it says fish: Unknown command '/usr/bin/keychain /home/freebsd/.ssh/id_dsa' /home/freebsd/.config/...
cjm's user avatar
  • 101
0 votes
0 answers
232 views

using FISH shell -- set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
brandonscript's user avatar
0 votes
1 answer
275 views

How to refer to absolute paths in fish?

I'm trying to get fish to recognize an absolute path, either when changing directories or when giving an input to a program. I'm used to typing an absolute path as "C:/..." but in fish the only way I ...
Holden Lee's user avatar
0 votes
1 answer
561 views

How to pin information to the top of a terminal window on Mac OSX

I've seen demos where folks have had a Mac OSX terminal where the current time + username + directory are afixed (like 'freeze rows' in excel) to the top of the terminal window (not in the title bar), ...
lmsurprenant's user avatar
0 votes
2 answers
235 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
-1 votes
1 answer
595 views

How do I launch the fish shell in WSL through Cmder?

Setting it as the default shell in Ubuntu WSL results in the PATH not working properly, as described in the docs. So I want to avoid that issue by launching it through the terminal.
alicode1111's user avatar