Add setting up custom .bashrc
This commit is contained in:
parent
007afc588f
commit
00c7fcf3c7
3 changed files with 19 additions and 3 deletions
4
PKGBUILD
4
PKGBUILD
|
@ -2,8 +2,8 @@
|
||||||
# Maintainer: Librewish <librewish@gmail.com>
|
# Maintainer: Librewish <librewish@gmail.com>
|
||||||
|
|
||||||
pkgname=garuda-common-settings
|
pkgname=garuda-common-settings
|
||||||
pkgver=1.2.8
|
pkgver=1.2.9
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
|
|
16
etc/skel/.bashrc_garuda
Normal file
16
etc/skel/.bashrc_garuda
Normal file
|
@ -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
|
|
@ -1,7 +1,7 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Categories=System;Monitor;
|
Categories=System;Monitor;
|
||||||
Comment=Does the initial user setup
|
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
|
Icon=setup
|
||||||
Name=Initial user setup
|
Name=Initial user setup
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
|
|
Loading…
Reference in a new issue