Use finger to selectively change shell #17

Closed
opened 2018-11-30 20:04:39 +00:00 by benie · 1 comment
Owner

Currently .conduit.yaml will unconditionally call the command below even when
zsh is already the default shell, requiring sudo password to be entered.

sudo chsh -s `which zsh` $USER

The users default shell can be found using the finger command, use this to
conditionally set call chsh when zsh is not the default shell.

finger $USER | grep zsh || sudo chsh -s `which zsh` $USER
Currently `.conduit.yaml` will unconditionally call the command below even when `zsh` is already the default shell, requiring `sudo` password to be entered. ``` sudo chsh -s `which zsh` $USER ``` The users default shell can be found using the `finger` command, use this to conditionally set call `chsh` when `zsh` is not the default shell. ``` finger $USER | grep zsh || sudo chsh -s `which zsh` $USER ```
benie closed this issue 2018-11-30 20:06:37 +00:00
benie reopened this issue 2018-11-30 20:09:20 +00:00
Author
Owner

This is no longer true. Closing.

This is no longer true. Closing.
benie closed this issue 2024-04-06 22:06:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: config/zsh#17
No description provided.