fish Questions
2
Solved
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'r...
Lozoya asked 10/12, 2015 at 7:44
5
Solved
I started using Fish (and oh-my-fish) a couple of weeks ago and one of the things that I find somewhat visually hard is the default background color of the autocomplete options (see the purple back...
Vevina asked 22/3, 2017 at 15:3
3
Solved
I've recently decided to give the fish shell a shot and also started using oh-my-fish. The problem I'm having is that I can't figure out how to change the color of directory listings when running a...
Fullmer asked 29/8, 2014 at 1:53
2
Solved
On bash you can use set -e inside a script in order to exit on error:
set -e
cd unexisting-folder
echo "this line will not be printed"
But on fish shell set -e is used to erase variables:
set F...
Tobacconist asked 9/11, 2013 at 12:38
2
Solved
I am looking for the equivalent of source .bashrc for Fish.
Sprayberry asked 17/6, 2013 at 16:13
5
Solved
How to check if a variable is a number in fish shell?
Looking for a simple way of doing it.
3
Solved
I'm translating a script from Z shell to Fish, and I've got this one part I can't figure out how to translate:
for (( i=0; i < $COLUMNS; i++ )); do
printf $1
done
The only documentation for ...
Overlay asked 2/1, 2014 at 1:54
2
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 g...
Whitby asked 20/3, 2021 at 16:36
11
Solved
I'm trying to open a directory in sublime Text 3.
I can launch sublime from the command line using the subl command.
The help text show the following:
Sublime Text build 3059
Usage: subl [argum...
Atonsah asked 16/10, 2014 at 10:47
4
Solved
I am currently trying out the fish shell instead of using bash. One type of notation I'm having trouble learning the fish-equivalent notation for is $(command), similar to how it is described in th...
Cicely asked 6/10, 2013 at 17:42
2
Solved
I have stumbled on a problem with the fish shell (which is my favorite shell) when I am trying to use command substitution:
gcc (pkg-config --libs --cflags gtk+-2.0 cairo) -o drawing_widget drawin...
Scientism asked 24/1, 2015 at 18:16
2
Solved
I'm aware that I can use time as
time <some command>
But this requires me to remember to type time before <some command>
I'm wondering if it's possible create some sort of hook, so tha...
2
Solved
In fish shell, I want to be able to expand a command substitution or variable as multiple arguments to another command, e.g.:
Without substitution
ls -l -h
Should give the same result as:
ls $(ech...
Cauldron asked 24/9, 2023 at 16:46
2
Solved
This question has already been asked, and answered here: https://superuser.com/a/940041/293429
However, the provided solution: executing set -e PATH[<index-of-the-path-to-be-removed] only appli...
3
Solved
I am trying to implement a feature from the following article:
How to boost your vim productivity
in the fish shell. The Author in the Article uses the following code to map Ctrl+Z in zsh to the ...
Implicatory asked 5/6, 2015 at 9:14
3
Solved
I am running Ubuntu 13.10 and fish 2.1.0. I want to write myself a Python script to do some tasks from the command line. The script will require command line arguments.
How can I write my script s...
Java asked 30/12, 2013 at 11:8
4
Solved
Here is the equivalent bash script that I am trying to convert to fish:
for j in *.md; do mv -v -- "$j" "${j%.md}.txt"; done
Here is what I tried:
for file in *.md
mv -v -- "$file" "{{$file}%....
Hysterotomy asked 26/7, 2016 at 12:39
9
Solved
I'm trying to get virtualenv to work with the fish shell. I have virtualenv installed and it works fine with bash and zsh. However, running the following command returns fish: Unknown command 'sour...
Wool asked 8/6, 2012 at 21:38
3
Solved
In an attempt to unlock the screen, I have accidentally entered my password into a terminal running the fish shell.
How can I remove it from the command history of fish again?
The solution does n...
Randi asked 24/5, 2020 at 20:14
6
I've defined a function hello in fishshell:
function hello
echo Hello
end
And save it:
funcsave hello
If I want to delete it, I can delete the file ~/.config/fish/functions/hello.fish.
Is there ...
3
Solved
I have multiple versions of PHP installed, and for my normal development I always use PHP 5.5.x installed via homebrew.
In the fish shell
which php & php --version
=> /usr/local/bin/php
=...
4
Solved
What I want to do using bash:
> if true; then echo y; else echo n; fi
y
> if false; then echo y; else echo n; fi
n
> if false || true; then echo y; else echo n; fi
y
Now trying with fis...
Liverish asked 27/7, 2013 at 16:35
10
Solved
I've been using Cygwin for quite a while now. I now want to switch to fish from bash. Everyone is saying that you should use chsh -s /usr/bin/fish, but for some reason, chsh does not work for me. T...
2
Solved
I'm using the fish shell under MacOS X Capitan and after using rustup.rs I get the following message:
Rust is installed now. Great!
To get started you need Cargo's bin directory in your PATH envir...
Sangsanger asked 26/12, 2022 at 8:5
1
Solved
I use fish shell and I just want to when I open the vscode it automatically selects the virtual environment that was activated in virtual fish.
I want to have something like this:
"python.inte...
Kalgan asked 2/10, 2022 at 19:12
1 Next >
© 2022 - 2025 — McMap. All rights reserved.