Compare commits
7 Commits
d7c5624bd6
...
master
Author | SHA1 | Date | |
---|---|---|---|
3dc64233d5 | |||
f2c024cd51 | |||
074a67e7eb | |||
209f1a3cac | |||
a40948c75e | |||
fea0297084 | |||
258e3d47dc |
19
README.md
19
README.md
@@ -1,6 +1,16 @@
|
||||
# Installify
|
||||
Installify is a Bash shell script to download new software and applications.
|
||||
|
||||
## Important installs
|
||||
Important installs are installs that might be needed to install other software. These installs will have a prioritisation over the rest of the files.
|
||||
|
||||
* Gcc
|
||||
* Git
|
||||
* Golang
|
||||
* Node/NVM
|
||||
* Open-jdk
|
||||
* PHP
|
||||
|
||||
## Applications & Software
|
||||
* ADB
|
||||
* Bootstrap Studio
|
||||
@@ -10,19 +20,14 @@ Installify is a Bash shell script to download new software and applications.
|
||||
* Discord (TO-DO)
|
||||
* Docker
|
||||
* Firefox
|
||||
* Gcc
|
||||
* Git
|
||||
* Golang
|
||||
* Node/NVM
|
||||
* Ionic
|
||||
* NordVPN
|
||||
* OBS
|
||||
* Open-jdk
|
||||
* PHP
|
||||
* Postman
|
||||
* Python (TO-DO)
|
||||
* Slack
|
||||
* Spotify
|
||||
* Teams
|
||||
* TypeScript
|
||||
* Visual Studio Code
|
||||
* Yarn
|
||||
* Xampp (TO-DO)
|
||||
|
22
install.sh
22
install.sh
@@ -40,10 +40,12 @@ zsh_prompt() {
|
||||
fi
|
||||
|
||||
# run option
|
||||
if [[ ${zshOption,,} = "n" ]]; then
|
||||
return
|
||||
elif [[ ${zshOption,,} = "y" ]]; then
|
||||
sh ../applications/Oh-MY-ZSH.sh
|
||||
if [[ ${zshOption,,} = "y" ]]; then
|
||||
# Create temporary zsh file
|
||||
touch $homedir/.tempzshrc
|
||||
|
||||
# set up the basics of zsh
|
||||
sh src/services/zsh/zsh.sh
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -288,6 +290,14 @@ check_sudo_arguments() {
|
||||
main
|
||||
}
|
||||
|
||||
install_oh_my_zsh() {
|
||||
# run option
|
||||
if [[ ${zshOption,,} = "y" ]]; then
|
||||
# Run Ohmyzsh (ends script)
|
||||
sh services/zsh/Oh-My-ZSH.sh
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
# check if the computer has a stable connections
|
||||
source ./src/services/connection.sh
|
||||
@@ -321,6 +331,8 @@ main() {
|
||||
cd $dir
|
||||
cd src
|
||||
rm temp/*
|
||||
|
||||
install_oh_my_zsh
|
||||
}
|
||||
|
||||
# PROGRAM BODY
|
||||
@@ -349,6 +361,8 @@ homedir="$(getent passwd $SUDO_USER | cut -d: -f6)"
|
||||
debug=false
|
||||
downloadall=false
|
||||
usezsh=""
|
||||
echo $homedir
|
||||
sleep 10
|
||||
|
||||
# run the program
|
||||
if [ $# -eq 0 ]; then
|
||||
|
@@ -1,9 +0,0 @@
|
||||
# install ZSH
|
||||
sudo apt install zsh -y
|
||||
|
||||
# Get oh my zsh and switch to zsh
|
||||
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
|
||||
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
||||
|
||||
# recompile zsh
|
||||
source ~/.zshrc
|
4
src/applications/ionic.sh
Normal file
4
src/applications/ionic.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
# remove older versions if needed
|
||||
npm uninstall -g ionic
|
||||
# install ionic
|
||||
npm install -g @ionic/cli
|
@@ -6,15 +6,16 @@ sudo tar -xvf linux64 -C /usr/bin
|
||||
|
||||
# export postman to env table
|
||||
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||
echo '# Postman path' >> ~/.zshrc
|
||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.zshrc
|
||||
source ~/.zshrc
|
||||
else
|
||||
echo '# Postman path' >> ~/.bashrc
|
||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
echo '# Postman path' >> ~/.tempzshrc
|
||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.tempzshrc
|
||||
source ~/.tempzshrc
|
||||
fi
|
||||
|
||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
||||
echo '# Postman path' >> ~/.bashrc
|
||||
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Create file and set info
|
||||
touch Postman.desktop
|
||||
{
|
||||
|
1
src/applications/typescript.sh
Normal file
1
src/applications/typescript.sh
Normal file
@@ -0,0 +1 @@
|
||||
npm install typescript -g
|
@@ -3,14 +3,16 @@ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||||
|
||||
# export nvm to env table
|
||||
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.zshrc
|
||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
|
||||
source ~/.zshrc
|
||||
else
|
||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
|
||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.tempzshrc
|
||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.tempzshrc
|
||||
source ~/.tempzshrc
|
||||
fi
|
||||
|
||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
||||
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
|
||||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
|
||||
# install latest version of node
|
||||
nvm install node
|
2
src/services/zsh/Oh-My-ZSH.sh
Normal file
2
src/services/zsh/Oh-My-ZSH.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
# Get oh my zsh, after this command the install stios, since we switched shells
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -y
|
8
src/services/zsh/zsh.sh
Normal file
8
src/services/zsh/zsh.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
# install ZSH
|
||||
sudo apt-get update
|
||||
sudo apt-get install zsh -y
|
||||
|
||||
# Set ZSH as standard interface
|
||||
chsh -s $(which zsh)
|
||||
|
||||
source ~/.zshrc
|
Reference in New Issue
Block a user