-
Hi everyone! Using bash, I am able to create a variable and assign it, for example, the initial part of a command, and use that in the console and add to that more arguments, for example: export MAKIM="makim --makim-file ./tests/.makim-simple.yaml"
${MAKIM} --help I was able to do it with xonsh with: @$(echo $MAKIM + ' --help') is there a better (short) way to do that? thanks!! |
Beta Was this translation helpful? Give feedback.
Answered by
gforsyth
Feb 9, 2023
Replies: 1 comment 1 reply
-
Hey @xmnlab ! Your syntax is correct, but you could make use of the xontrib load abbrevs
abbrevs["makim"] = "makim --makim-file ./tests/.makim-simple.yaml"
makim<space> --help |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xmnlab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @xmnlab ! Your syntax is correct, but you could make use of the
abbrevs
xontrib and do: