1,027 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
100
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
46
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
83
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
94
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
175
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
254
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
684
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
919
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
875
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
284
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
199
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
256
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
58
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" | ...
1
vote
2
answers
194
views
FISH Shell - Cannot `cd -` when extending builtin cd
I have a custom cd function that looks like:
function cd -d "cd with auto conda activation"
# set -gx OLDPWD (pwd) <-- uncommenting this does not resolve issue
builtin cd $param $...
0
votes
3
answers
227
views
Is it possible to setup FISH alias based on different OS or available command?
I see Define an alias in fish shell, and I know how to setup alias and/or functions,
But is it possible to setup different alias target based on OS? Maybe use function?
What I experience isn't ...