fix install script
This commit is contained in:
		
							parent
							
								
									2f9dfda8d6
								
							
						
					
					
						commit
						804311d0a1
					
				| @ -1,4 +1,4 @@ | |||||||
| if status is-interactive | if status is-interactive && type -q pfetch | ||||||
|     # Commands to run in interactive sessions can go here |     # Commands to run in interactive sessions can go here | ||||||
|     echo |     echo | ||||||
|     pfetch |     pfetch | ||||||
| @ -8,3 +8,6 @@ set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; se | |||||||
| # bun | # bun | ||||||
| set --export BUN_INSTALL "$HOME/.bun" | set --export BUN_INSTALL "$HOME/.bun" | ||||||
| set --export PATH $BUN_INSTALL/bin $PATH | set --export PATH $BUN_INSTALL/bin $PATH | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | |||||||
							
								
								
									
										27
									
								
								install
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								install
									
									
									
									
									
								
							| @ -1,15 +1,14 @@ | |||||||
| #!/usr/bin/bash | #!/usr/bin/bash | ||||||
| 
 | 
 | ||||||
| DIR=$(dirname $(realpath "$0")) | DIR=$(dirname $(realpath "$0")) | ||||||
| cd $DIR |  | ||||||
| 
 | 
 | ||||||
| if [[ -f /etc/os-release && $1 == "packages" ]]; then | if [[ -f /etc/os-release && $1 == "packages" ]]; then | ||||||
| 	. /etc/os-release | 	. /etc/os-release | ||||||
| 
 | 
 | ||||||
| 	distro=${$NAME,,} | 	distro=${NAME,,} | ||||||
| 
 | 
 | ||||||
| 		 | 		 | ||||||
| 	if [ $distro == "ubuntu" ]; then | 	if [[ $distro == "ubuntu" ]]; then | ||||||
| 		export DEBIAN_FRONTEND=noninteractive | 		export DEBIAN_FRONTEND=noninteractive | ||||||
| 
 | 
 | ||||||
| 		sudo apt-get update && sudo apt-get -y install --no-install-recommends wget curl | 		sudo apt-get update && sudo apt-get -y install --no-install-recommends wget curl | ||||||
| @ -37,29 +36,25 @@ if [[ -f /etc/os-release && $1 == "packages" ]]; then | |||||||
| 
 | 
 | ||||||
| 		sudo apt-get upgrade -y | 		sudo apt-get upgrade -y | ||||||
| 				 | 				 | ||||||
| 	elif [ $distro == "arch linux" ]; then | 	elif [[ $distro == "arch linux" ]]; then | ||||||
| 		sudo pacman -Sy --noconfirm | 		sudo pacman -Sy --noconfirm | ||||||
| 
 | 
 | ||||||
| 		sudo pacman -S git base-devel curl wget --noconfirm | 		sudo pacman -S git base-devel curl wget --noconfirm | ||||||
| 
 | 
 | ||||||
| 		# install snapd |  | ||||||
| 		git clone https://aur.archlinux.org/snapd.git /tmp/snapd |  | ||||||
| 		cd /tmp/snapd && makepkg -si --noconfirm |  | ||||||
| 		sudo ln -s /var/lib/snapd/snap /snap |  | ||||||
| 		sudo systemctl enable snapd.socket |  | ||||||
| 		 |  | ||||||
| 
 |  | ||||||
| 		# install yay AUR helper | 		# install yay AUR helper | ||||||
| 		git clone https://aur.archlinux.org/yay.git /tmp/yay | 		git clone https://aur.archlinux.org/yay.git /tmp/yay | ||||||
| 		cd /tmp/yay && makepkg -si --noconfirm | 		cd /tmp/yay && makepkg -si --noconfirm | ||||||
| 		yay -Sy --noconfirm | 		yay -Sy --noconfirm | ||||||
| 
 | 
 | ||||||
| 		sudo pacman --noconfirm -S \ | 		sudo pacman --noconfirm -S \ | ||||||
| 				fish pfetch grim slurp wl-clipboard sway swaylock swaybg alacritty rofi \ | 				fish grim slurp wl-clipboard sway swaylock swaybg alacritty rofi \ | ||||||
| 				light networkmanager networkmanager-openvpn xournalpp \ | 				networkmanager networkmanager-openvpn xournalpp \ | ||||||
| 				php python helix jdk-openjdk jre-openjdk docker gdm gnome seahorse | 				php python helix jdk-openjdk docker docker-buildx gdm gnome seahorse | ||||||
| 
 | 
 | ||||||
| 		yay -S google-chrome | 		yay -S google-chrome light snapd --noconfirm | ||||||
|  | 
 | ||||||
|  | 		sudo ln -s /var/lib/snapd/snap /snap | ||||||
|  | 		sudo systemctl enable snapd.socket | ||||||
| 
 | 
 | ||||||
| 		sudo systemctl enable gdm | 		sudo systemctl enable gdm | ||||||
| 		sudo systemctl enable NetworkManager | 		sudo systemctl enable NetworkManager | ||||||
| @ -70,9 +65,9 @@ if [[ -f /etc/os-release && $1 == "packages" ]]; then | |||||||
| 
 | 
 | ||||||
| 	sudo usermod -aG video $USER | 	sudo usermod -aG video $USER | ||||||
| 	sudo usermod -aG docker $USER | 	sudo usermod -aG docker $USER | ||||||
| 	 |  | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | cd $DIR | ||||||
| 
 | 
 | ||||||
| # install config files | # install config files | ||||||
| for filename in $(ls -p | grep -v "install" | grep -v "/" | grep -v "README.md"); do | for filename in $(ls -p | grep -v "install" | grep -v "/" | grep -v "README.md"); do | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ludwig Lehnert
						Ludwig Lehnert