Compare commits

..

No commits in common. "6a7134147e48a23831f085dbb2ad751ca151c229" and "e8cc922c6156422d23ba1cc1ad65f1e8a459090e" have entirely different histories.

5 changed files with 12 additions and 26 deletions

View File

@ -42,7 +42,7 @@ zsh_prompt() {
# run option
if [[ ${zshOption,,} = "y" ]]; then
# Create temporary zsh file
sudo -u $SUDO_USER touch ~/.tempzshrc
touch ~/.tempzshrc
# set up the basics of zsh
sh src/services/zsh/zsh.sh

View File

@ -1,5 +1,3 @@
#!/bin/bash -i
# Get install file
wget https://dl.pstmn.io/download/latest/linux64
@ -8,13 +6,14 @@ sudo tar -xvf linux64 -C /usr/bin
# export postman to env table
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
sudo -u $SUDO_USER echo '# Postman path' >> ~/.tempzshrc
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.tempzshrc
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
sudo -u $SUDO_USER echo '# Postman path' >> ~/.bashrc
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
echo '# Postman path' >> ~/.bashrc
echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
source ~/.bashrc
# Create file and set info

View File

@ -1,3 +1,3 @@
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn -y
sudo apt-get update && sudo apt-get install yarn

View File

@ -1,5 +1,3 @@
#!/bin/bash -i
# Get the full html and get the link of the button
wget https://go.dev/dl/
@ -15,11 +13,4 @@ sudo -u $SUDO_USER wget "https://go.dev"$latestversionsh
# Remove any previous Go installation then extract the archive
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.zshrc
fi
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.bashrc
source ~/.bashrc
export PATH=$PATH:/usr/local/go/bin

View File

@ -1,19 +1,15 @@
#!/bin/bash -i
# get nvm package
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
sudo -u $SUDO_USER echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.zshrc
sudo -u $SUDO_USER echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
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
fi
# always put in bashrc aswell, so that the user can always rely on the standard shell
sudo -u $SUDO_USER echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
sudo -u $SUDO_USER 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")"' >> ~/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
# install latest version of node
nvm install node