From 9abc4c361a94f83680adf9d8264da12b2e081cf4 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Sun, 11 Feb 2024 21:57:39 +0100 Subject: [PATCH] will only switch shell if necessary --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 088fcb6..4f72c16 100644 --- a/config.org +++ b/config.org @@ -856,7 +856,9 @@ which #+end_src *** Set as default shell #+begin_src shell :tangle update.sh -chsh-s $(which zsh) +if [ "$(basename "$SHELL")" != "zsh" ]; then + chsh $(which zsh) +fi #+end_src *** [[https://ohmyz.sh/][Oh-My-Zsh]] **** Installation