From 00c7fcf3c7b33e081801f63123e5ca7e52da5eab Mon Sep 17 00:00:00 2001 From: dr460nf1r3 Date: Sat, 12 Jun 2021 12:16:15 +0000 Subject: [PATCH] Add setting up custom .bashrc --- PKGBUILD | 4 ++-- etc/skel/.bashrc_garuda | 16 ++++++++++++++++ .../.config/autostart/initial-user-setup.desktop | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 etc/skel/.bashrc_garuda diff --git a/PKGBUILD b/PKGBUILD index aa0c4b1..397c465 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,8 +2,8 @@ # Maintainer: Librewish pkgname=garuda-common-settings -pkgver=1.2.8 -pkgrel=2 +pkgver=1.2.9 +pkgrel=1 arch=('any') url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" license=('GPL') diff --git a/etc/skel/.bashrc_garuda b/etc/skel/.bashrc_garuda new file mode 100644 index 0000000..a9f7f64 --- /dev/null +++ b/etc/skel/.bashrc_garuda @@ -0,0 +1,16 @@ +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Load starship prompt +__main() { +local major="${BASH_VERSINFO[0]}" +local minor="${BASH_VERSINFO[1]}" + +if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then +source <("/usr/bin/starship" init bash --print-full-init) +else +source /dev/stdin <<<"$("/usr/bin/starship" init bash --print-full-init)" +fi +} +__main +unset -f __main diff --git a/etc/skel/.config/autostart/initial-user-setup.desktop b/etc/skel/.config/autostart/initial-user-setup.desktop index bc3886a..0dadd5d 100755 --- a/etc/skel/.config/autostart/initial-user-setup.desktop +++ b/etc/skel/.config/autostart/initial-user-setup.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Categories=System;Monitor; Comment=Does the initial user setup -Exec=systemctl --user enable --now psd;systemctl --user enable --now pulseaudio-bluetooth-autoconnect;systemctl --user enable --now gamemoded;systemctl --user enable --now libinput-gestures;setup_dxvk install;rm ~/.config/autostart/initial-user-setup.desktop +Exec=systemctl --user enable --now psd;systemctl --user enable --now pulseaudio-bluetooth-autoconnect;systemctl --user enable --now gamemoded;systemctl --user enable --now libinput-gestures;setup_dxvk install;mv ~/.bashrc_garuda ~/.bashrc;rm ~/.config/autostart/initial-user-setup.desktop Icon=setup Name=Initial user setup StartupNotify=false