1,029 questions
Tooling
0 votes
1 replies
29 views
Tool to autocomplete `python -m` module calls for the Fish shell
Directly inspired from Command-line autocompletion for python -m module. Is there any extension to Fish shell that allows TAB-like autocomplete for python -m calls? In my case I only wish for it to ...
0 votes
0 answers
64 views
fish shell trap (or --on-signal function) triggers but only when using stdin
Maybe I'll rewrite this to python as I understand the error handling in there a bit better but I'm curious why the behavior is different when it's running as a pipeline vs not: function args.or.stdin ...
1 vote
1 answer
106 views
How can I set environment variables to non-utf8 values? [closed]
In fish I want to set an environment variable to a non-utf8 value like \x80 (the character sequence of length one with the value 0x80, i.e., 128). I already tried set -x a \x80 fish: Invalid token '\...
0 votes
1 answer
53 views
How to find orphaned files with a fish shell script
In a Fish Shell script, how can I recursively find files ending in: .xmp, .pp3, .out.pp3 that do not have an accompanying image file. The result should be written into a variable. If I have the ...
1 vote
1 answer
94 views
Issue in command substitution in fish
I'm trying to compile a C code (that was generated using Cython) as follows gcc (uv run python3-config --cflags --ldflags) some_file.c -o some_file.o However, I don't think substitution is working in ...
0 votes
1 answer
143 views
How do I clear an entire multiline prompt in the fish shell?
I accidentally pasted many, many lines of text into my prompt. If I hold down C-u or C-k I’ll still be waiting a long time to clear everything. Is there a keystroke combination that will clear the ...
2 votes
0 answers
193 views
Intellij Fish Integration is broken
Whenever I launch a terminal using my fish path (usr/bin/fish) it only displays following error: # Cannot open Fish # Failed to start [ /usr/bin/fish, **<------------ THIS IS YOUR PROBLEM. Can't ...
0 votes
1 answer
338 views
fish_add_path in config.fish: The expanded command was empty when trying to add to PATH
Hello I want to use FISH as my main shell and I have to prepend some directories/files to $PATH. I followed the guide on the ArchLinux wiki for prepending to $PATH but I ran into issues. This is the ...
1 vote
2 answers
917 views
fish shell: Glob function?
When I migrated to fish from bash, I found glob patterns like "tmp[0-9][0-9].pdf" aren't supported. Then, recently fish has stopped to support the ? wildcard: $ fish --version fish, version ...
2 votes
1 answer
1k views
Problem with uv autocompletion in Fish shell after activating Mise
I’m trying to set up autocompletion for uv in Fish shell while using Mise to manage my environment. Mise has been installed correctly, and I'm using Fish as my terminal shell. However, autocompletion ...
0 votes
1 answer
932 views
Next.js error: "You are using Node.js 18.15.0. For Next.js, Node.js version >= 18.17.0 is required" despite using a higher Node.js version
I recently created a Next.js app using the CLI, and when I tried to run the development server with npm run dev, I encountered this error: You are using Node.js 18.15.0. For Next.js, Node.js version &...
1 vote
2 answers
338 views
Start my Fish shell always from home, rather than the previous location?
I use the Fish shell, using the config from this dotfiles repository: https://github.com/kevinrenskers/dotfiles/tree/main/fish. The problem is that whenever I open a new tab in my terminal, that it ...
0 votes
1 answer
238 views
How to bind a key to just another key in fish
I am trying to bind the key sequence control-h (\ch in fish) to the right arrow key. I know how to bind it to backward-char with bind the normal way, but that poses an issue in my config, since I have ...
0 votes
4 answers
268 views
Is there a way to have fish-shell use GNU coreutils printf function?
Ran into an issue when running the following command in a fish shell: ❯ printf '%q\n' 'André Previn & London Symphony Orchestra' %q: invalid conversion specification I hadn't realized at first ...
0 votes
1 answer
64 views
How to pipe on a condition in Fish?
See previous question, How to pipe on a condition in Bash. I'm interested in the same construct for Fish, i.e. shorthand for: set check 0 if test $check = 1 printf "foo\nbar\nbaz\n" | ...