Questions tagged [fish]

Fish is a command line shell. Its syntax is not based on the Bourne shell or the C shell.

Filter by
Sorted by
Tagged with
0 votes
1 answer
78 views

Why is the name of archive files not displayed in red color

I use the command of "ls" to list all files in a directory. However, I found that the name of archive files such as ".tar.gz" is not displayed in red color.The version of the ...
5 votes
1 answer
5k views

Cursor positioning using mouse in bash possible?

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times ...
0 votes
1 answer
596 views

I opened a terminal, put my whole command in quotes and it replied “command not found”. What is going on?

I got this when I opened the terminal: Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish leah@leah-pc ~> ... and I then tried to run a command: leah@...
2 votes
2 answers
2k views

Fish does not run as conda base by default

I have installed Fish on my Ubuntu, but every time I open my terminal I have to run the bash command to initiate conda base. I hadn't this problem with ZSH in the past. Is there any solution to make ...
4 votes
3 answers
6k views

fish alias with a variable in the middle?

I have dyslexia so I use fish as my shell since it's great with prediction, correction and aliasing. I'm trying to figure out how to make an alias with a variable inside followed by the rest of the ...
0 votes
0 answers
152 views

Fish shell "fish_prompt.fish" error

_tide_remove_unusable_items: command not found ~/.config/fish/functions/fish_prompt.fish (line 5): _tide_remove_unusable_items ^~~~~~~~~~~~~~~~~~~~~~~~~~^ from sourcing file ~/.config/fish/functions/...
0 votes
2 answers
371 views

How can I name my log files according to the date?

I have tried to do something like date=date and then name my file $date.txt but the output was date.txt. Fun thing, I asked Copilot to help but I don't understand its advice and unsure how to fix it: ...
1 vote
1 answer
52 views

How can I delete non-mp3 files recursively using fish shell?

The tree list is like this: /Music |--- folder1 |--- folder2 |--- folder3 | |---- folder3.1 | |---- folder3.2 | \---- folder3.3 |--- folder4 I had tried the command rm | ls -R | grep -v &...
0 votes
1 answer
223 views

How do I determine what's causing my Terminology terminal startup lag?

I've noticed recently that my Terminology terminal emulator lags when I open it up. It takes about 10 seconds to open a new window after I launch. Once it's open however, I don't notice any lag. I am ...
1 vote
1 answer
5k views

Cannot execute /usr/local/bin/fish: No such file or directory

To preface, I'm new to all this and still learning, so please bare with me when it comes to terminology and locating things. Setup: Proxmox Virtual Environment 7.2-3 + Container + ubuntu-22.04-...
0 votes
0 answers
788 views

After setting fish shell default all commands are unknown

After I set fish shell default and rebooting I cannot login (because I am using sddm) and every command that I type in tty are unknown. I don’t know how to fix it.
0 votes
1 answer
604 views

How to disable close terminal warning?

When I use fish shell and try to close the terminal without exiting from fish, it gives me a warning before closing. How to get rid of the warning?
0 votes
1 answer
128 views

Remove Text from multiple folder names in fish or bash

have a folder with sub folders. I want to remove [ garbage.com ] from each folder name. I would like to remove the space after the ] Currently $ ls [ garbage.com ] happy [ garbage.com ] Sad [ ...
158 votes
5 answers
251k views

How do I set fish as the default shell?

Is there a way to set fish as the default shell in ubuntu netbook remix? I put in my .bashrc to run fish, which works fine, but ubuntu recognizes it as fish running inside bash, which means that when ...
3 votes
1 answer
352 views

What is the fish equivalent of set -e?

bash has a builtin called set with an "exit early" feature described as follows: -e Exit immediately if a pipeline (see Pipelines), which may consist of a single simple command (see Simple ...
1 vote
1 answer
1k views

How to run an alias inside an alias in fish?

I aliased sudo to please with a space: $ alias please='sudo ' $ please ll I have tried this in Fish, but it doesn't work: $ alias please='sudo ' $ please ll sudo: ll: command not found
12 votes
5 answers
4k views

How to get color man pages under fish shell?

There seems to be a way to get man pages to display in color (see here. It involves setting environment variables associated with less and adding these definitions to .bashrc. I tried doing the same ...
27 votes
1 answer
8k views

Where should I find the fish_add_path command?

After a system updated my fish shell prompt is no longer working. Whenever I open a terminal I get this error: /usr/share/fish/vendor_conf.d/snapd.fish (line 3): fish_add_path -aP $snap_bin_path ^ ...
0 votes
0 answers
1k views

Removing conda from path

echo $PATH [OUT] /home/cmaspi/anaconda3/bin /home/cmaspi/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin I've already removed anaconda3 ...
-1 votes
2 answers
403 views

Installation: Copy script somewhere into $PATH [duplicate]

I wanted to install polybar-themes and one of the dependencies was networkmanager_dmenu so, i want to install it. Im on Ubuntu 20.04 and only valid option there for me is: Copy script somewhere into $...
3 votes
1 answer
2k views

When pressing tab in Bash, display autocompleted filenames like in zsh or fish

Actually, I'm running Bash, and I'll like to make a settle modification at the configuration. With zsh and fish, we have the opportunity to display files and directories when we press Tab. Is there a ...
1 vote
1 answer
601 views

Powerline does not track git branches

Stuff: WSL2:Ubuntu 20:04 LTS Bash / FishShell Powerline installed using sudo apt-get install powerline Problem: Powerline does not changing dislpayed branch after git checkout <branch_name>. ...
60 votes
2 answers
91k views

How to add exports to fish like in .bashrc?

I just wanted to be able to add inside some fish configuration file (don't know which/where) the same function as this: export PERL5LIB=/home/iaco/workspace/perl:/home/iaco/devtools This line was ...
0 votes
0 answers
1k views

How to merge history from multiple terminal session

Is there a way to merge history from multiple terminal sessions in Fish shell? I tried to use the command history merge but I get the following error" history: you cannot use any options with ...
0 votes
3 answers
1k views

How to separate different data values in a list and assign to variables in a shell script?

Let's say I have a list of data in a shell script like this: DataList = [" Cat Dog Rabbit GuineaPig Hamster "] Now, how I would I go about setting each separate data value in the list as a ...
1 vote
1 answer
983 views

FSL installation in Ubuntu 20.04 gives : [FAILED] Unknown shell type fish

I am trying to install FSL in Ubuntu 20.04 for the past 2 days, it is showing '[FAILED] Unknown shell type fish'. I got to learn the hard way that FSL doesn't support fish, so I switched the shell to ...
1 vote
1 answer
3k views

User does not appear on login

I just changed by default shell from bash to fish after a clean 20.04 install, and when I restarted afterwards my user does not appear at the login screen or in my settings. I can still login if I ...
2 votes
1 answer
1k views

Using wildcards with apt-get in fish

While attempting to remove all the Ubuntu MATE stuff that got onto my system, fish seemed to reject wildcards for apt-get. sudo apt-get remove mate-* fish: No matches for wildcard “mate-*”. See `help ...
0 votes
1 answer
2k views

Fish-shell not recognizing .bashrc exports

I had to install a couple of programs for my university on Ubuntu, those required extra lines in .bashrc these are the following lines if [ -d /opt/pic32mx/bin ] ; then export PATH=$PATH:/opt/pic32mx/...
2 votes
0 answers
247 views

Should I add $HOME/.local/share to XDG_DATA_DIRS?

Currently XDG_DATA_DIRS contains /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop. I would like to add ~/.local/share to the list. My reason is the following: Now the fish shell ...
1 vote
1 answer
863 views

Fish history not working; more specifically, not adding new entries

I don't really know exactly since when this happen. I think since I updated to Ubuntu 20.04. I have used Fish since a long time, and earlier via Linuxbrew to get a more recent version. So I assume ...
5 votes
5 answers
1k views

Snap applications don't show up after re-login using fish shell

On Ubuntu 18.04 I've changed my shell to fish via chsh -s `which fish` I've installed Maillspring and Visual Studio Code snap apps, they installed fine and could be launched from the dash initially,...
5 votes
1 answer
3k views

Fish Powerline with status line at the bottom of the shell

I am trying to figure out how this guys manage to have the status line at the bottom of fish-shell as he shared here. https://github.com/yongjhih/rc/blob/master/art/screenshot-fish-powerline.png I ...
7 votes
3 answers
4k views

Why do snap packages disappear when using the Fish shell?

If I take a clean install of Ubuntu 17.10, install a package via snap, and change my shell to fish, after logging in again the package is missing from gnome-shell's menu and from my favorites list. ...
1 vote
1 answer
1k views

Use FISH to connect through jump server in KDE Dolphin

I need to access the files in a server that could only be connected using a jump server. I am able to SSH into it using ssh -J user1@jumpserver_ip user2@server_ip How can I use fish protocol in ...
0 votes
1 answer
194 views

I updated to ubuntu 20.04 and now I can't type spaces in fish terminal

I just updated to ubuntu 20.04 and I use the fish terminal instead of bash. Now when I use fish I can't type a space anymore. Normally, on 19.10, I would type the start of a command and then space to ...
2 votes
1 answer
3k views

The total size of the argument and environment lists 1.8MB exceeds the operating system limit of 2MB

While trying to run certain commands via ubuntu terminal, I receives an error message Failed to execute process '/bin/grep'. Reason: The total size of the argument and environment lists 1.8MB ...
13 votes
3 answers
18k views

Change default shell when user not in /etc/passwd

Any ideas on how can I change the shell to fish? $ sudo usermod -s /usr/bin/fish jaan usermod: user 'jaan' does not exist in /etc/passwd $ getent passwd $USER jaan:x:15466:94:Jaan A:/home/jaan:/bin/...
0 votes
2 answers
2k views

Where Fish Shell Contains own Aliases (functions) Files

I use Windows Linux Subsystem build on Ubuntu 14.04 in Windows 10. ➜ User lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 ...
1 vote
2 answers
187 views

How can I start automatically a command on Ubuntu 18.04?

I have a small command like this xinput set-prop "XP-PEN G430S Pen Pen (0)" --type=float "Coordinate Transformation Matrix" 1.155756, 0.000000, 0.000000, 0.000000, 1.529, 0.000000, 0.000000, 0.000000,...
1 vote
1 answer
1k views

`date` command doesn't work as expected under fish shell

I have written numerous aliases and functions using fish shell. yet this one bit threw me off guard. Can someone help me to understand what's going wrong and possibly how to fix them? Problem: Define ...
1 vote
0 answers
136 views

~/bin no more in the PATH

I used to have a folder ~/bin with soft links to my local applications. After the last installation, fish shell is no more adding this folder to the PATH. Any explanation about why this stopped to ...
4 votes
1 answer
2k views

midnight commander freezes on remote file copy over fish/ssh protocol

I'm using midnight commander (mc), version 4.8.1 shipped with Ubuntu. when I try to copy a file from remote ssh server over the fish/ssh protocol, mc freezes at 0%, and I had to terminate it. I tried ...
1 vote
1 answer
202 views

Is it possible to switch shells without getting dumped into the old shell by exit?

For example, let's say I have bash, sh, fish, zsh, pwsh or more installed. If I start bash, switching into sh leads to the following: user@device:/folder/directory$ sh $ exit user@device:/folder/...
0 votes
1 answer
2k views

Error in source ~/.profile [closed]

~/.profile (line 25): Missing end to balance this if statement if [ -d "$HOME/local/bin" ] ; then ^ from sourcing file ~/.profile called on standard input source: Error while reading file “/home/...
2 votes
1 answer
4k views

PAM: Authentication failure

Pardon for dumb question, just getting started with Linux, and I think this multiple questions all rolled into one. I have setup a AWS Ubuntu machine. I am getting to that machine from Windows by ...
4 votes
1 answer
2k views

command not found when using nvm in fish shell

How can I run and use nvm inside a fish shell? I was previously using bash and switched to fish shell and now I'm unable to use nvm. most of the wrappers are not maintained. what other alternatives ...
10 votes
1 answer
6k views

How to remove the time stamp on the right side of the fish shell?

Simple question, I'd like to remove the time stamp on the right hand side of the fish shell terminal screen: On a sidenote, it would be even better to know how to customize it as in the image below:
11 votes
1 answer
9k views

fish shell: "shopt -s dotglob" analog

I'm trying to migrate from bash to fish. What is the fish's analog to shopt? I'm trying to imitate this line from my .bashrc: shopt -s dotglob # for mv * see hidden files
0 votes
1 answer
49 views

Why do I automatically get a period (.) in my MANPATH?

I'm setting MANPATH to :bla, yet when I try to use it, its value has suddenly turned into .:bla and this completely changes the meaning of it.