Warning
Work in progress. Most fish built-ins left as is.
Hook is a fish parser and transpiler.
Hook can translate fish scripts to clean, idiomatic Bash scripts, allowing them to run (almost) anywhere.
Note
Want the reverse (Bash → fish)? Checkout Bait!
-
nix profile install github:kidonng/hook
Warning
Hook translation may produce unexpected result. Check output before serious usage.
# Translate from stdin
echo 'set hello world; and echo $hello' | hook
# Translate to stdout
hook script.fish > script.sh