From 5754a020994e7258c6cb555c6c277f4a8edcc822 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 14 Dec 2022 10:44:37 +0100 Subject: [PATCH] Install ZSH and switch to it --- .installer/packages | 2 +- setup_system.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.installer/packages b/.installer/packages index 77932a1..025a31b 100644 --- a/.installer/packages +++ b/.installer/packages @@ -10,7 +10,7 @@ apt-any:i3,feh,i3status,nm-tray,pasystray,xautolock,inotify-tools,xss-lock,fonts apt-any:libxext-dev,libxcb1-dev,libxcb-damage0-dev,libxcb-xfixes0-dev,libxcb-shape0-dev,libxcb-render-util0-dev,libxcb-render0-dev,libxcb-randr0-dev,libxcb-composite0-dev,libxcb-image0-dev,libxcb-present-dev,libxcb-xinerama0-dev,libxcb-glx0-dev,libpixman-1-dev,libdbus-1-dev,libconfig-dev,libgl1-mesa-dev,libpcre2-dev,libpcre3-dev,libevdev-dev,uthash-dev,libev-dev,libx11-xcb-dev,meson apt-any:python3,python3-pip apt-any:sddm,gstreamer1.0-libav,phonon4qt5-backend-gstreamer,gstreamer1.0-plugins-good,qml-module-qtquick-controls,qml-module-qtgraphicaleffects,qml-module-qtmultimedia -apt-any:tmux,codium,vim,ufw,scrot +apt-any:zsh,tmux,codium,vim,ufw,scrot apt-any:chromium-browser apt-any:cargo,cmake,pkg-config,libfreetype6-dev,libfontconfig1-dev,libxcb-xfixes0-dev,libxkbcommon-dev,python3 apt-any:libxcb-render0-dev,libffi-dev,python3-dev,python3-cffi diff --git a/setup_system.sh b/setup_system.sh index ece9494..f236117 100755 --- a/setup_system.sh +++ b/setup_system.sh @@ -216,7 +216,11 @@ function build_alacritty() { sudo cp $tmp_dir/extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg sudo desktop-file-install $tmp_dir/extra/linux/Alacritty.desktop sudo update-desktop-database - rm -Rf /tmp/alacritty + sudo rm -Rf /tmp/alacritty +} + +function change_shell() { + sudo chsh -s "$(which zsh)" "$USER" } # @@ -276,6 +280,7 @@ function setup_arch() { setup_brew_formulas || return 8 setup_krew || return 9 setup_krew_plugins || return 10 + change_shell || return 11 } # @@ -338,6 +343,7 @@ function setup_debian() { setup_krew || return 10 setup_krew_plugins || return 11 build_alacritty || return 12 + change_shell || return 13 } ID_LIKE="$(grep ID_LIKE=