mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-28 00:07:30 +10:00
Fixed install.sh
This commit is contained in:
+16
-35
@@ -18,9 +18,19 @@ echo '
|
|||||||
# Fail on any command.
|
# Fail on any command.
|
||||||
set -eux pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
# Install prequisites
|
# Install prerequisites
|
||||||
|
echo "Install prerequisites"
|
||||||
|
echo
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y git zsh curl git build-essential
|
sudo apt install -y git zsh curl git build-essential whiptail
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Update system
|
||||||
|
echo "Update system"
|
||||||
|
echo
|
||||||
|
sudo apt full-upgrade -y
|
||||||
|
echo
|
||||||
|
|
||||||
# Do not print commands
|
# Do not print commands
|
||||||
set +x
|
set +x
|
||||||
set +eux
|
set +eux
|
||||||
@@ -29,22 +39,10 @@ echo '
|
|||||||
--------------- Oh-My-zsh Install ---------------
|
--------------- Oh-My-zsh Install ---------------
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
# Print commands
|
# Print commands
|
||||||
set -x
|
set -x
|
||||||
#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
||||||
|
|
||||||
#echo >> ~/.bashrc
|
sudo apt install zsh fzf -y
|
||||||
#echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc
|
|
||||||
#eval "$(/home/linuxbrew/.linuxbrew/bin/brew #shellenv)"
|
|
||||||
|
|
||||||
# Prequises from homebrew
|
|
||||||
#brew update
|
|
||||||
#brew upgrade
|
|
||||||
#brew install fzf gcc thefuck gh
|
|
||||||
|
|
||||||
# Disable exit on error
|
|
||||||
sudo apt install zsh fzf eza -y
|
|
||||||
|
|
||||||
# Installs Oh-My-Zsh
|
# Installs Oh-My-Zsh
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
@@ -118,27 +116,10 @@ sudo apt install -y python3 python3-pip git htop golang figlet irssi cmatrix neo
|
|||||||
set -x
|
set -x
|
||||||
sudo apt full-upgrade -y
|
sudo apt full-upgrade -y
|
||||||
|
|
||||||
set +x
|
|
||||||
echo '
|
|
||||||
|
|
||||||
--------------- apt packages Install ---------------
|
|
||||||
|
|
||||||
'
|
|
||||||
# Print commands
|
|
||||||
set -x
|
|
||||||
|
|
||||||
#echo "Would you like to install CasaOS? [Y/N]: "
|
|
||||||
#read REPLY
|
|
||||||
#if [[ $REPLY =~ ^[y]$ ]]; then
|
|
||||||
# curl -fsSL https://get.casaos.io | sudo bash
|
|
||||||
#fi
|
|
||||||
|
|
||||||
echo "Disabled"
|
|
||||||
|
|
||||||
# Add an update-all script
|
# Add an update-all script
|
||||||
sudo rm -f /usr/local/bin/update-all
|
#sudo rm -f /usr/local/bin/update-all
|
||||||
sudo curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/extras/update-all%20script -o /usr/local/bin/update-all
|
#sudo curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/extras/update-all%20script -o /usr/local/bin/update-all
|
||||||
sudo chmod +x /usr/local/bin/update-all
|
#sudo chmod +x /usr/local/bin/update-all
|
||||||
|
|
||||||
# Do not print commands
|
# Do not print commands
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
Reference in New Issue
Block a user