Questions tagged [fish]
The friendly interactive shell (fish) is a Unix shell that focuses on interactive use, discoverability, and user friendliness.
34
questions with no upvoted or accepted answers
2
votes
0
answers
22
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 ...
2
votes
2
answers
880
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 ...
2
votes
1
answer
624
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 ...
2
votes
1
answer
259
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 ...
2
votes
0
answers
701
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.
...
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 ...
1
vote
0
answers
158
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-...
1
vote
1
answer
628
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 >...
1
vote
0
answers
126
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 "...
1
vote
1
answer
183
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 ...
1
vote
0
answers
93
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 ...
1
vote
0
answers
250
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 ...
1
vote
0
answers
150
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:
$ ...
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
/...
1
vote
0
answers
220
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 ...
0
votes
1
answer
431
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
564
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 ...
0
votes
1
answer
674
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?
0
votes
0
answers
234
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
107
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 ~; ...
0
votes
1
answer
262
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, ...
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 ...
0
votes
0
answers
198
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 /...
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 ...
0
votes
1
answer
317
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 ...
0
votes
1
answer
467
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 ...
0
votes
1
answer
458
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 ...
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, ...
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/...
0
votes
0
answers
230
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 > ...
0
votes
1
answer
270
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 ...
0
votes
1
answer
529
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), ...
-1
votes
2
answers
47
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 ...
-1
votes
1
answer
557
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.