1
0
Fork 0
mirror of synced 2024-12-22 08:11:08 -05:00

Add setting up custom .bashrc

This commit is contained in:
dr460nf1r3 2021-06-12 12:16:15 +00:00
parent 007afc588f
commit 00c7fcf3c7
No known key found for this signature in database
GPG key ID: BE75B9D9767036C2
3 changed files with 19 additions and 3 deletions

View file

@ -2,8 +2,8 @@
# Maintainer: Librewish <librewish@gmail.com>
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')

16
etc/skel/.bashrc_garuda Normal file
View 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

View file

@ -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