fish-shell

How can I set fish shell as my default shell on Mac?

I do not like to write fish again and again when I start terminal. I want fish on by default. ...

Fish Interactive Shell full path

Is there a way in the Fish Interactive shell for the full path to be displayed. Currently when I navigate to a directory I get the following shell. millermj@Dodore ~/o/workspace but I would rather see millermj@Dodore ~/o-town/workspace ...

Compiling fish shell under Cygwin?

Has anyone been able to correctly compile fish under Cygwin? I found this post about modifying configure.ac but I'm getting all sorts of errors. The usual configure, make, make install isn't working for me, maybe I'm doing something wrong here... Can someone please walk me through how to get it to compile? ...

Retrieve the path of the current source file with fish

In a fish shell script, is it possible to obtain the path where the shell script lives? In bash, you can use the BASH_SOURCE variable to do this. ...

Writing A Fish Shell Script With an Optional Argument

I have a fish shell script whose default behavior is to send an email when complete. I'd like to modify it to respond to a nomail argument from the command line. So, for example, running the script normally would produce an email: michaelmichael: ~/bin/myscript But if run with the nomail switch, it wouldn't send the confirmation email:...

cannot understand command substitute in fish shell

In sh: ~$ `echo ls` bin/ Desktop/ But in fish: fish: Illegal command name “(echo ls)” ~% (echo ls) (Note that the error message appears above the command line.) ~% echo (echo ls) ls ~% eval (echo ls) bin/ Desktop/ fish: Illegal command name “(echo ls)” exec (echo ls) ^ ~% exec (echo ls) It seems that command substitution...

How to define constants in fish?

In sh: readonly constant=value How to do it in fish? ...

Directory of running script in Fish shell

I'm trying to get SBT running using the Fish shell. Below is the equivalent Bash script of what I'm trying to achieve: java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@" I see in the Fish documentation that $@ in Bash can be replaced with $argv in Fish. But I cannot see what to replace dirname $0 with. Does anyone know the equivale...