fish

Accessing effective stress variables when using axisymetric option in FISH

I'm running a function defined in FISH in an axisymetric FLAC model. The model accesses the stresses in the three different axes using sxx, syy and szz. I've used this function many times in a plain strain model without any issues but in the axisymetric model the values of sxx, syy and szz appear to be returning 0. I suspect that this is...

How to define an alias in fish shell?

I would like to define some aliases in fish. Apparently it should be possible to define them in ~/.config/fish/functions but they don't get auto loaded when I restart the shell. Any ideas? p.s. if anyone is using or has used fish in the past I'd be interested to hear your comments as to whether it offers anything that bash does no...

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