aboutsummaryrefslogtreecommitdiff
path: root/etc/bash
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bash')
-rw-r--r--etc/bash/vcs-ps1.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/bash/vcs-ps1.sh b/etc/bash/vcs-ps1.sh
index 4b440be..6e74e1d 100644
--- a/etc/bash/vcs-ps1.sh
+++ b/etc/bash/vcs-ps1.sh
@@ -132,7 +132,7 @@ path() {
}
guix_env() {
- if [ "$GUIX_ENVIRONMENT" != '' ]; then
+ if [ -n "${GUIX_ENVIRONMENT:-}" ]; then
printf '\n'
color -c blacki '~> '
color -c purple 'guix environment '
@@ -143,7 +143,7 @@ guix_env() {
}
in_nix_shell() {
- if [ "$IN_NIX_SHELL" != '' ]; then
+ if [ -n "${IN_NIX_SHELL:-}" ]; then
printf '\n'
color -c blacki '~> '
color -c purpleb "$IN_NIX_SHELL "