mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-07-03 16:20:56 +10:00
cleans asthetics of the command
This commit is contained in:
+21
-6
@@ -22,12 +22,9 @@ echo '
|
|||||||
#
|
#
|
||||||
# This function is intended to be used to print error messages.
|
# This function is intended to be used to print error messages.
|
||||||
die() {
|
die() {
|
||||||
local rc=$?
|
rc=$?
|
||||||
if (( $# > 0 )); then
|
(( $# )) && printf '%s\n' "$*" >&2
|
||||||
printf '%s\n' "$@" >&2
|
exit "$(( rc == 0 ? 1 : rc ))"
|
||||||
rc=1
|
|
||||||
fi
|
|
||||||
exit "$rc"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fail on any command.
|
# Fail on any command.
|
||||||
@@ -38,6 +35,9 @@ sudo apt update
|
|||||||
sudo apt upgrade
|
sudo apt upgrade
|
||||||
sudo apt install git-core zsh curl git build-essential
|
sudo apt install git-core zsh curl git build-essential
|
||||||
|
|
||||||
|
# Do not print commands
|
||||||
|
set +x
|
||||||
|
|
||||||
# Install docker
|
# Install docker
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
sh get-docker.sh
|
sh get-docker.sh
|
||||||
@@ -45,6 +45,9 @@ sh get-docker.sh
|
|||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
|
||||||
|
# Print commands
|
||||||
|
set -x
|
||||||
|
|
||||||
echo >> ~/.bashrc
|
echo >> ~/.bashrc
|
||||||
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc
|
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
@@ -54,9 +57,15 @@ brew update
|
|||||||
brew upgrade
|
brew upgrade
|
||||||
brew install eza fzf gcc thefuck gh
|
brew install eza fzf gcc thefuck gh
|
||||||
|
|
||||||
|
# Disable exit on error
|
||||||
|
set +eux
|
||||||
|
|
||||||
# Install Oh-My-zsh
|
# Install Oh-My-zsh
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" || die "zsh might already be installed"
|
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" || die "zsh might already be installed"
|
||||||
|
|
||||||
|
# Enable exit on error
|
||||||
|
set -eux
|
||||||
|
|
||||||
# Remove old config file
|
# Remove old config file
|
||||||
rm -rf ~/.zshrc
|
rm -rf ~/.zshrc
|
||||||
|
|
||||||
@@ -84,12 +93,18 @@ source ~/.zshrc
|
|||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
|
|
||||||
|
# Do not print commands
|
||||||
|
set +x
|
||||||
|
|
||||||
# Install code server
|
# Install code server
|
||||||
curl -fsSL https://code-server.dev/install.sh | sh
|
curl -fsSL https://code-server.dev/install.sh | sh
|
||||||
|
|
||||||
# Install GEF
|
# Install GEF
|
||||||
bash -c "$(curl -fsSL https://gef.blah.cat/sh)"
|
bash -c "$(curl -fsSL https://gef.blah.cat/sh)"
|
||||||
|
|
||||||
|
# Do not print commands
|
||||||
|
set -x
|
||||||
|
|
||||||
# Install personal apt packages
|
# Install personal apt packages
|
||||||
sudo apt install git htop golang hugo figlet irssi cmatrix neofetch cowsay fortune-mod tint tty-clock lolcat hugo libsass1 dpkg npm python3 docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin flatpak gnome-software-plugin-flatpak libcurl4-gnutls-dev bsd-mailx needrestart powermgmt-base accountsservice lynx wget curl evince zsh net-tools --fix-missing
|
sudo apt install git htop golang hugo figlet irssi cmatrix neofetch cowsay fortune-mod tint tty-clock lolcat hugo libsass1 dpkg npm python3 docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin flatpak gnome-software-plugin-flatpak libcurl4-gnutls-dev bsd-mailx needrestart powermgmt-base accountsservice lynx wget curl evince zsh net-tools --fix-missing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user