chore: Update to use bash instead of zsh

This commit is contained in:
2024-10-21 15:27:07 +02:00
parent 80edbfc48c
commit f3ee35f577
29 changed files with 132 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh
@@ -76,7 +76,7 @@ run_startup_scripts() {
touch $HOME/dotfiles/logs/startup/$command_key.log
# Run the command in a new screen session named after the command_key
screen -dmS $command_key zsh -c "eval $command > $HOME/dotfiles/logs/startup/$command_key.log 2>&1"
screen -dmS $command_key bash -c "eval $command > $HOME/dotfiles/logs/startup/$command_key.log 2>&1"
sleep $(echo "scale=2; $delay_between_ms / 1000" | bc)
if ! screen -list | grep -q $command_key; then

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh
source $HOME/dotfiles/bin/helpers/keyboard_shortcuts.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
source $HOME/dotfiles/bin/helpers/functions.sh
@@ -173,10 +173,6 @@ tailscalecmd() {
}
extensions() {
printfe "%s\n" "cyan" "Ensuring Oh My Zsh is installed..."
source $HOME/dotfiles/bin/helpers/ohmyzsh.sh
ensure_ohmyzsh_installed
printfe "%s\n" "cyan" "Ensuring GNOME Extensions are installed..."
source $HOME/dotfiles/bin/helpers/gnome_extensions.sh
ensure_gnome_extensions_installed
@@ -234,12 +230,12 @@ terminal() {
}
default_shell() {
printfe "%s\n" "cyan" "Setting zsh as default shell..."
if [ "$SHELL" != "/usr/bin/zsh" ]; then
printfe "%s\n" "yellow" " - Setting zsh as default shell"
chsh -s /usr/bin/zsh
printfe "%s\n" "cyan" "Setting bash as default shell..."
if [ "$SHELL" != "/usr/bin/bash" ]; then
printfe "%s\n" "yellow" " - Setting bash as default shell"
chsh -s /usr/bin/bash
else
printfe "%s\n" "green" " - zsh is already the default shell"
printfe "%s\n" "green" " - bash is already the default shell"
fi
}