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
14 views

How to migrate universal variables between computers in fish shell [duplicate]

I recently changed laptops. I have all the original files for fish configuration, including the ~/.config/fish/fish_variables. But I cannot source that file and it says I cannot change it. So, how do ...
1 vote
1 answer
537 views

Preserve command history in chronological order (in fish)

I have noticed that default behaviour for storing command history is only storing the latest entry. Typing ls and then ls -al and then entering history would show: ls -al ls Typing ls once more would ...
18 votes
3 answers
17k views

How to do command substitution in fish shell?

How would a Bash (or other POSIX shell) command like this have to be expressed in fish? ls -l $(which vim) # or ls -l `which vim`
2 votes
1 answer
1k views

How to open new terminal window in previous directory using fish shell?

I use fish shell and Gnome-Terminal Version 3.44. When I open a new terminal I'd like it to start up in the previously-visited directory. How can I implement this via fish shell?
17 votes
3 answers
8k views

Make bash as close to fish as possible

I love the fish shell and use it exclusively in MacOS but I use bash everywhere else because its the only thing installed. Having felt the pain of maintaining configuration files for the two shells, I'...
1 vote
1 answer
307 views

PYTHONPATH defined on multiple vs single line in fish shell

I noticed that set -xg PYTHONPATH "/path/to/dir1" set -xg PYTHONPATH $PYTHONPATH "/path/to/dir2" works, whereas set -xg PYTHONPATH "/path/to/dir1 /path/to/dir2" does ...
1 vote
1 answer
714 views

How to remove leading file path information from fish shell tab-complete suggestions?

Using fish, typing ls <tab> in an example directory, the terminal displays: $ ls bar/ dir/ foo/ Continuing with d<tab><tab> this becomes: $ ls dir/ dir/moredir/ dir/otherdir/ ...
2 votes
2 answers
933 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 ...
-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.
1 vote
1 answer
2k views

FISH - How to hide hostname/computer from prompt?

For context, I am using FISH 3.1.0. I looked in fish_config, but none of the prompt options just remove the hostname/computer while keeping the rest the same. Is there a way to keep most of the ...
1 vote
1 answer
862 views

Change the startup directory to something other than HOME

By default, when I open the fish shell, my working directory is the home directory. Is there a way to change the default working directory on startup, without having to edit the HOME variable?
3 votes
1 answer
1k views

I deleted fish shell and now VS Code terminal doesn't work

I have been working on a tutorial in Angular. Everything was working fine before I went to work today. I came back to my home computer after work today and the fish shell I was using within VS code ...
1 vote
1 answer
1k views

tmux changes shell prompt

Ubuntu 20.04 (running inside VirtualBox, if that's important.) tmux 3.0a (installed via apt) fish 3.4 (and earlier 3.3) starship.rs 1.1.1 Font: FiraCode Mono I have configured my prompt to look as ...
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, ...
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?

15 30 50 per page
1 2
3
4 5
13