Make loading starship in bashrc based on condition - remove starship from depends
This commit is contained in:
parent
ab24a7a36f
commit
b23d714db9
2 changed files with 16 additions and 15 deletions
5
PKGBUILD
5
PKGBUILD
|
@ -2,8 +2,8 @@
|
|||
# Maintainer: Librewish <librewish@gmail.com>
|
||||
|
||||
pkgname=garuda-common-settings
|
||||
pkgver=2.0.0
|
||||
pkgrel=2
|
||||
pkgver=2.0.1
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
||||
license=('GPL')
|
||||
|
@ -14,7 +14,6 @@ depends=('btrfsmaintenance'
|
|||
'garuda-browser-settings'
|
||||
'garuda-hooks'
|
||||
'garuda-icons'
|
||||
'garuda-starship-prompt'
|
||||
'haveged'
|
||||
'memavaild'
|
||||
'nohang'
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Load starship prompt
|
||||
# Load starship prompt if starship is installed
|
||||
if [ -x /usr/bin/starship ]; then
|
||||
__main() {
|
||||
local major="${BASH_VERSINFO[0]}"
|
||||
local minor="${BASH_VERSINFO[1]}"
|
||||
|
@ -14,6 +15,7 @@ __main() {
|
|||
}
|
||||
__main
|
||||
unset -f __main
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
alias dir='dir --color=auto'
|
||||
|
|
Loading…
Reference in a new issue