Added profile to lazybox package
This commit is contained in:
		
							parent
							
								
									0cf277cfae
								
							
						
					
					
						commit
						e1b7034146
					
				
					 2 changed files with 23 additions and 0 deletions
				
			
		|  | @ -7,6 +7,7 @@ ext="dev" | ||||||
| 
 | 
 | ||||||
| fetch() { | fetch() { | ||||||
| 	mkdir $pkgname-$pkgver | 	mkdir $pkgname-$pkgver | ||||||
|  | 	cp ../profile.sh . | ||||||
| 	cd $pkgname-$pkgver | 	cd $pkgname-$pkgver | ||||||
| 	cp ../../../../lazy*.sh . | 	cp ../../../../lazy*.sh . | ||||||
| 	cp ../../../../LICENSE . | 	cp ../../../../LICENSE . | ||||||
|  | @ -19,6 +20,8 @@ build() { | ||||||
| 
 | 
 | ||||||
| package() { | package() { | ||||||
| 	cd $pkgname-$pkgver | 	cd $pkgname-$pkgver | ||||||
|  | 	install -d $pkgdir/etc/ | ||||||
|  | 	install -Dm644 ../profile.sh $pkgdir/etc/profile | ||||||
| 	install -d $pkgdir/usr/sbin | 	install -d $pkgdir/usr/sbin | ||||||
| 	install -Dm755 lazy.sh $pkgdir/usr/sbin/lazy | 	install -Dm755 lazy.sh $pkgdir/usr/sbin/lazy | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										20
									
								
								pkgs/lazybox/profile.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								pkgs/lazybox/profile.sh
									
										
									
									
									
										Normal 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 | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue