Skip to content

How to run xsh scripts located in the path on current dir #5147

Answered by bestlem
pannet1 asked this question in Q&A
Discussion options

You must be logged in to vote

Begin the script with a shebang e.g.:

cd /tmp

echo @("""#!/usr/bin/env xonsh
echo world
""") > hello.xsh

chmod +x hello.xsh

./hello.xsh
# world

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pannet1
Comment options

@bestlem
Comment options

Answer selected by pannet1
Comment options

You must be logged in to vote
1 reply
@anki-code
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants