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
}

View File

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
# In case we run Pop!_OS let's use `cosmic-screenshot --interactive`, otherwise default to `flameshot gui`
if [[ -x "$(command -v cosmic-screenshot)" ]]; then

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
ensure_docker_installed() {
# if docker is already installed, skip the installation

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
#Color print function, usage: println "message" "color"
println() {

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
@@ -48,7 +48,7 @@ ensure_keyboard_shortcuts() {
# Start swhkd
printfe "%s\n" "green" " - starting swhkd..."
printfe "%s\n" "yellow" " Note: this will likely show a password prompt, please enter your password"
screen -dmS swhkd zsh -c "$HOME/dotfiles/bin/actions/hotkey-daemon.sh"
screen -dmS swhkd bash -c "$HOME/dotfiles/bin/actions/hotkey-daemon.sh"
# Check if this is gnome DESKTOP_SESSION is gnome, if not we can stop here
# The next part is just for setting up custom shortcuts in GNOME

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
ensure_tailscale_installed() {
# if tailscale is already installed, skip the installation

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