Questions tagged [fish]
Fish is a unix shell with a clean design and a limited but powerful feature set.
241
questions
0
votes
1
answer
52
views
Can't install FISH on Amazon Linux 2023
I have an EC2 instance running Amazon Linux 2023. I added the fish repo per the instructions. I used dnf config-manager --add-repo... and then dnf config-manager --enable-repo.... I also added g++, ...
3
votes
2
answers
287
views
how to alias the `history` function in fish shell
I'm trying to set the fish history pager to be bat -l fish for syntax highlighting.
(i.e. set the PAGER environment variable bat -l fish just for the history command).
I tried:
# 1:
alias history &...
1
vote
0
answers
32
views
Fish script works as function, but not as standalone script [duplicate]
I have a small function that activates my desired Python venv - pya venv python_version - so something like this:
pya vm_info 3.10.12
As a fish function, this works perfectly:
function pya
set -l ...
2
votes
1
answer
48
views
Fish needs a lazy evulation to remove an element from a list
I'm running Fish version 3.7.0, and I want to write a function to remove elements from lists, based on their index.
For instance, I want to remove the element from PATH environment variable at index 2:...
1
vote
1
answer
60
views
Fish access non-aliased command from alias
How can I access the non-aliased version of a command from within the alias for that command? In bash, I can do something like alias ls='\ls -l' to access the non-aliased ls inside this alias for ls. ...
0
votes
1
answer
123
views
How to run a fish alias from cron?
I have set up a fish alias for some commands that I frequently need to run manually. Now, I want the same commands to be run regularly. How can I set up cron to automatically run a fish alias?
0
votes
2
answers
515
views
Batch convert flac to ogg with ffmpeg
I'm trying to turn this command into one that will convert a whole directory from flac to ogg:
ffmpeg -i musicfile.flac musicfile.ogg
I've read through the man page. But honestly it's a bit over my ...
0
votes
1
answer
189
views
FISH CLI What do the error numbers at the prompt mean?
I am just trying out the FISH - (the FriendlyInteractiveSHell) - CLI & whenever I type in an erroneous Command, a new Prompt appears under the faulty Command prompt with a number in square ...
2
votes
3
answers
110
views
In Fish, how do I cd to the closest parent with a .git directory?
I use Fish shell. Sometimes, I find myself in a child directory of a child directory of a child directory, several layers deep, and I want to return to the closest parent with a .git directory, as ...
0
votes
2
answers
644
views
I have to run eval $(/opt/homebrew/bin/brew shellenv) every time I start my pc for the terminal to recognise it
I use the Fish shell on OSX and installed brew.
Now I notice everytime I start my mac I need to run the eval $(/opt/homebrew/bin/brew shellenv) command again to make it recognice brew.
I also noticed ...
0
votes
1
answer
474
views
fish 'Invalid redirection target' error
This command works well in Bash and Zsh:
expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <({ pacman -Qqg xorg; expac -l '\n' '%E' base; } | sort -u)) | sort -n
But ...
1
vote
1
answer
62
views
Completion for gradle not applying
I'm trying to understand why the gradle completion isn't applying.
Since gw seems to be a keyword for the completion, I created an alias:
alias gw='./gradlew'
(My project uses gradle wrapper. I don'...
1
vote
2
answers
376
views
git autocompletions in Fish: how can I disable them or speed them up?
I'm running Fish shell (3.6.0) on Ubuntu. Let's say that I'm trying to run git add foo/bar.txt . I type:
git add foo
and then I press tab . Now the shell freezes up for a few seconds. Even pressing ...
1
vote
1
answer
228
views
where a variable inherit from, Fishshell
i'm trying to set an environment variable EDITOR and change it from default which is /usr/bin/nano but i can't use set -Ux due to this behavior
fish FAQ
How to find out which setting fish inherits ...
0
votes
0
answers
47
views
Fish shell can't change directory over a Webdav resource through Rclone
Fish can't cd into a folder on a Webdav remote directory through Rclone:
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
drive ) ls
Documents/ Music/ ...