Command Shell: Difference between revisions

imported>Nix
m add software and configuration categories
imported>Klaymore
m Small wording fix
Line 21: Line 21:


== Changing /bin/sh ==
== Changing /bin/sh ==
{{Warning|Please note that NixOS assumes all over the place that shell to be Bash, so override the default setting only if you know exactly what you're doing.}}
{{Warning|Please note that NixOS assumes all over the place that shell is Bash, so override the default setting only if you know exactly what you're doing.}}
{{ic|/bin/sh}} is a symlink to your default POSIX-Compliant shell. It's used when writing shell scripts, so that the script works on all machines independently of what shell the user is using. /bin/sh doesn't have to be the same as your interactive shell (e.g. the one you use in your terminal). In fact, a lot of people set their interactive shells to [[zsh]]/[[fish]], but set /bin/sh to dash, because it's fast and scripts don't need any of those fancy zsh/fish features.
{{ic|/bin/sh}} is a symlink to your default POSIX-Compliant shell. It's used when writing shell scripts, so that the script works on all machines independently of what shell the user is using. /bin/sh doesn't have to be the same as your interactive shell (e.g. the one you use in your terminal). In fact, a lot of people set their interactive shells to [[zsh]]/[[fish]], but set /bin/sh to dash, because it's fast and scripts don't need any of those fancy zsh/fish features.