bash - Directory of running script in Fish shell -


I am trying to run SBT using fish shell. Below I am trying to achieve what is the equivalent bidding script:

  java -xmx512m -jar `dirname $ 0` / sbt-launch.jar" $ @ " 

I see in the fish document that Bash can be converted into fish from $ argv in $ @ but I can not see that How to change dirname $ 0

Do anyone know the same script in fish?

$ _ Only work directly through the reader / command line, or when the script's help

For me, it may work for you:

  java-xmx512m -jar (dirname (status -f)) / sbt-launch .jar "$ argv" # Fish  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -