Added profile to lazybox package

This commit is contained in:
Ella-0 2021-02-03 15:33:53 +00:00
parent 0cf277cfae
commit e1b7034146
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@ ext="dev"
fetch() {
mkdir $pkgname-$pkgver
cp ../profile.sh .
cd $pkgname-$pkgver
cp ../../../../lazy*.sh .
cp ../../../../LICENSE .
@ -19,6 +20,8 @@ build() {
package() {
cd $pkgname-$pkgver
install -d $pkgdir/etc/
install -Dm644 ../profile.sh $pkgdir/etc/profile
install -d $pkgdir/usr/sbin
install -Dm755 lazy.sh $pkgdir/usr/sbin/lazy
}

20
pkgs/lazybox/profile.sh Normal file
View File

@ -0,0 +1,20 @@
# Setup Path
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export POSIX_ME_HARDER=1
# Setup Shell Prompt
if [ "$(whoami)" == "root" ]; then
export PS1=$(hostname)"# "
else
export PS1=$(hostname)"$ "
fi
# Replace TERM with xterm because netbsd-curses doesn't include alacritty
if [ "$TERM" == "alacritty" ]; then
export TERM=xterm
fi
# load profile
for file in $(ls /etc/profile.d); do
. /etc/profile.d/$file
done