-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
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
Symlink available commands to bin #25322
Comments
The "Nix" way to do this is to avoid these paths. You definitely can set up a symlink from /bin to /run/current-system/sw/bin but you could also just use the current-system path. Either way though there's probably a better way that doesn't involve hard coding a path. |
So my scrips should say: |
No, @matthewbauer meant you should place the interpreter inplace of |
Thank you |
how about |
$ cat ./foo.awk
#!/usr/bin/env -S awk -f
END { printf "WORKS" }
$ ./foo.awk </dev/null
WORKS |
Thanks. |
This is another question.
Many times we run commands or write scripts that access common paths in linux, such as /bin/bash.
How can I make nixos automatically symlink all commands to the bin directory?
The text was updated successfully, but these errors were encountered: