diff --git a/commands/select-shell b/commands/select-shell index 253a7af2c..0d720075a 100755 --- a/commands/select-shell +++ b/commands/select-shell @@ -66,10 +66,10 @@ function select-shell() ( fi # log - echo-segment --h1="Selected the shell [$shell] at [$path]" + echo-segment --h1="Selected [$shell] at [$path]" - # add the shell to the system whitelist - echo-segment --h2="Whitelisting as a login shell" + # update system whitelist + echo-segment --h2="Update system whitelist" if contains-line "$path" /dev/stderr - echo-segment --e2="Set as the login shell for [$USER]" + echo-style --error="Unable to update the login shell on this system, as neither of the tools to do it [chpass] nor [chsh] exist on this sytem." >/dev/stderr + echo-segment --e2="Update login shell for [$USER]" return 19 # ENODEV 19 Operation not supported by device fi - echo-segment --g2="Set as the login shell for [$USER]" + echo-segment --g2="Update login shell for [$USER]" # success case - echo-segment --g1="Selected the shell [$shell] at [$path]" + echo-segment --g1="Selected [$shell] at [$path]" echo-style --notice="Restart your terminal, or open a new one, for the change to take effect." } function use_first_available {