We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias="..."
1.1.34+5e5e7c60f
Linux 6.8.0-31-generic x86_64 x86_64
add to .zshrc
alias it="echo OK"
ensure it outputs "OK" in CLI directly
then try to run "bun run index.ts"
await Bun.$`it`;
it shows
bun: command not found: it
No response
The text was updated successfully, but these errors were encountered:
Bun isn't zsh, so it would be strange for it to load the .zshrc file. Also, aliases don't inherit in shells either:
.zshrc
zsh $> alias hello="echo goodbye" $> hello goodbye $> zsh $> hello zsh: command not found: hello $> exit $> hello goodbye
Alias should be suported within a shell script, but I don't think it makes sense to support loading from .zshrc.
$> cat a.sh alias hello="echo goodbye" hello $> sh a.sh goodbye $> bun a.sh bun: command not found: hello
For now, you can use a zsh alias in bun shell with await $`zsh -ic "hello"` (-i is required to load .zshrc)
await $`zsh -ic "hello"`
-i
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.1.34+5e5e7c60f
What platform is your computer?
Linux 6.8.0-31-generic x86_64 x86_64
What steps can reproduce the bug?
add to .zshrc
ensure it outputs "OK" in CLI directly
then try to run "bun run index.ts"
it shows
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: