Open MakisH opened 1 year ago
Looking at this line, you may also want to prepend, instead of appending, as the system would then look at the Nix binaries first:
export PATH=$HOME/.bin:$PATH
Here, we actually want the single quotes, as we really want to grep for this exact string without expanding it. But having shellcheck is probably a good idea anyway.
For the prepending part: I am unsure if this is a good idea. The way it is, it will first take a natively installed nix binary, if available and then fallback to the binary that was installed by using the setup.sh script. What are your thoughts on this?
For the prepending part: I am unsure if this is a good idea. The way it is, it will first take a natively installed nix binary, if available and then fallback to the binary that was installed by using the setup.sh script. What are your thoughts on this?
I would assume that a user installation of nix has priority over the system installation. If the user needed to install a different version locally, there was probably a reason, such as a problem or missing feature of the system installation.
You may want to try shellcheck. For
setup.sh
, it only gives two issues, but it can be quite helpful in other cases: