i shouldve created a branch
This commit is contained in:
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 src/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
|
||||
|
Reference in New Issue
Block a user