Top "Fish" questions

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

Set Default Shell in Cygwin

I've been using Cygwin for quite a while now. I now want to switch to fish from bash. Everyone is …

shell cygwin fish
Fish equivalent of bash $(command) notation

I am currently trying out the fish shell instead of using bash. One type of notation I'm having trouble learning …

shell fish command-substitution
Recommendation - Zsh vs FishShell. Scripting, productivity and poweruser perse

I have spent sometime trying to pick one, on net comparisons are for zsh vs bash and fish vs bash. …

bash shell zsh fish
Fish shell: Check if argument is provided for function

I am creating a function (below) with which you can provide an argument, a directory. I test if the $argv …

function shell fish
List all aliases available in fish/bash shell

Is there a way to list all aliases, something like: $ ls-aliases .. "cd .." la "ls -Gla" gs "git stash" etc... Also …

bash macos shell alias fish
Why & How fish does not support POSIX?

I have heard about fish that it's a friendly and out-of-box shell but also it doesn't support POSIX standard. On …

shell posix fish
unix: how to tell if a string matches a regex

Trying out fish shell, so I'm translating my bash functions. The problem is that in one case, I'm using bash …

regex linux unix pattern-matching fish
How to get exit status of program in fish shell

In the bash shell, I could echo $? to get the exit code of a program run on the cli. What …

fish
fish shell. How to check if a variable is set/empty?

How can I do something like set variable (some_command_that_may_return_a_string) if [ variable is set ] do_…

shell fish
String manipulation in fish shell

i wish to write a fish shell script to automatically initialize JAVA_HOME to current configured java-alternative. In bash it …

fish