Top "Fish" questions

The fish shell is an alternate shell, and scripting language, for *nix systems (including macOS).

Add a relative path to $PATH on fish startup

I want to add ./bin directory (which is relative to current shell directory) to $PATH on fish startup. Note that …

macos shell environment-variables fish
On OS X, how do I change my shell from fish back to bash?

I'm kinda preferring bash lately to fish, and I'm wondering if I can change it back. I tried this command: …

macos bash terminal fish
Test for string equality / string comparison in Fish shell?

How do you compare two strings in Fish (like "abc" == "def" in other languages)? So far, I've used a combination …

fish
pipe both, stdout and stderr in the fish shell

I know this has been an issue for a while and I found a lot of discussion about it, however …

fish
How do I translate this `for` loop for the fish shell?

I'm translating a script from Z shell to Fish, and I've got this one part I can't figure out how …

fish
How to access remaining arguments in a fish script

my-fish-script a b c d Say you want to get the all arguments from the second argument onwards, so b …

fish
Cannot run source activate with conda in Fish-shell

I follow conda_PR_545, conda issues 4221 and still not working on Ubuntu. After downloading conda.fish from here, and mv …

anaconda fish
PS1 prompt in fish (Friendly Interactive SHell) show git branch

In Bash I have my PS1 as PS1="\u@\h:\w\$(git branch 2>/dev/null | grep -e '\* ' | …

fish
Fish Shell: How can I customize the colors for the autocomplete feature?

I started using Fish (and oh-my-fish) a couple of weeks ago and one of the things that I find somewhat …

linux ubuntu fish oh-my-fish
How can I provide tab completions to fish shell from my own script?

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 …

shell autocomplete tab-completion fish