Quantcast
Channel: Active questions tagged fish - Stack Overflow
Browsing all 106 articles
Browse latest View live

How to load a .env file's environment variables into both Bash and Fish...

I want to have a .env file with a bunch of name-value pairs, like:VAR1=xxxVAR2=yyy# sample C include dir use caseINCLUDE_DIR=/etc/include/xxxI want these variables to be available in both bash and fish...

View Article


Prompt Gets Truncated Instead of Wrapping When Terminal Window Is Small Using...

When I resize my terminal window to be smaller, the prompt gets truncated with an ellipsis (...) instead of wrapping onto the next line. However, prompts that were already displayed before resizing the...

View Article


How to retrieve the current script's path in Fish shell

In bash, we can retrieve the current script's path by $0 variable, so if any script has a dependency resource which is under the same directory as the script directory, we can use it even when we're...

View Article

Is there is any way to use FISH with RNA instead of DNA for medical image...

I'm asking about using a RNA sample instead of DNA sample for medical imaging application, the image will be taken by FISH kit video the problem is that the RNA is more fragile than DNA if anyone has...

View Article

My fish is blind? (fish does not recognise any commands after setting it as...

I installed fish with homebrew on Mac OS Big Sur, Apple Silicon. Then I added /opt/homebrew/bin/fish to /etc/shells. When I now start fish from the default shell, it recognises all commands (like git...

View Article


How to use fish aliases in bash scripts

I have a bash script and I want to use a command in it, that I defined in my config.fish like this:alias setbg='feh --bg-fill'However when I use the command in my bash script, I get:setbg: command not...

View Article

How do you dynamically reload fish config files as you would in bash?

I am looking for the equivalent of source .bashrc for Fish.

View Article

Homebrew: `brew install --HEAD`, but with a specific commit [closed]

This question is related to, but different from Homebrew install specific version of formula? (since that question deals with different versions of the formula, while I'm taking about the --HEAD...

View Article


Error budspencer theme for fish shell . Cant use terminal [closed]

I'm trying to install the Budspencer theme in my fish shell. But when doing, so I keep getting the following errorThis is theme for fish, a theme for nerds.Type in order to see how you can speed up...

View Article


How to use fish aliases in bash scripts

I have a bash script and I want to use a command in it, that I defined in my config.fish like this:alias setbg='feh --bg-fill'However when I use the command in my bash script, I get:setbg: command not...

View Article

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...

View Article

How to use fish aliases in bash scripts

I have a bash script and I want to use a command in it, that I defined in my config.fish like this:alias setbg='feh --bg-fill'However when I use the command in my bash script, I get:setbg: command not...

View Article

new to PopOS, I installed fish, now $HOME is set weird [closed]

I built a new desktop on POP_OS. I installed fish usingsudo snap install fish-shell --betaIt works great, but now $HOME is no longer set to/home/<username>instead it's set...

View Article


fish shell: Is it possible to conveniently strip extensions?

Is there any convenient way to strip an arbitrary extension from a file name, something à la bash ${i%%.*}? Do I stick to my friend sed?

View Article

In fish shell, how can I put two conditions in an if statement?

What I want to do using bash:> if true; then echo y; else echo n; fiy> if false; then echo y; else echo n; fin> if false || true; then echo y; else echo n; fiyNow trying with fish:> if...

View Article


Trying to install OpenFoam in Ubuntu WSL using fish shell [closed]

So I am trying to install OpenFoam12 in Ubuntu and I am using fish. However, the installation instrucctions mentions:Open the .bashrc file in the user’s home directory in an editor, e.g. by typing in a...

View Article

= 18.17.0 is required" despite using a higher Node.js version">Next.js error: "You are using Node.js 18.15.0. For Next.js, 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...

View Article


How to override (decorate) a builtin fish function

I would like to silence the printf that is found on line 9 of /usr/share/fish/functions/__fish_move_last.fish because I find it annoying.How can I do that without copying the entire function over?If I...

View Article

How do I use Fish's Alt bindings using Kitty on macOS

I acquired a macOS machine for the first time, and I can't figure out how to use commands such as alt+E to open the current command in $EDITOR.I don't want to remap the ⌘ key to alt system-wide, but I...

View Article

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...

View Article
Browsing all 106 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>