-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation_script.sh
More file actions
89 lines (86 loc) · 3.51 KB
/
installation_script.sh
File metadata and controls
89 lines (86 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Get kernel name
# Darwin for macOS || Linux for Linux
kernel_name=$(uname)
if [ "$kernel_name" = "Darwin" ];
then
defaults write com.apple.dock autohide-delay -float 0; killall Dock
defaults write com.apple.dock autohide-time-modifier -float 0; killall Dock
echo "Installation starts for macOS"
echo "Installing xcode command line tools..."
xcode-select --install
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# echo "Installing oh-my-zsh..."
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# exit
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc && source ~/.zshrc
echo "Installing packages from homebrew..."
brew install htop neofetch cocoapods
echo "Installing Raycast..."
brew install --cask raycast
echo "Installing Android Studio..."
brew install --cask android-studio
echo "Installing Sourcetree..."
brew install --cask sourcetree
echo "Installing Telegram..."
brew install --cask telegram-desktop
echo "Installing VLC..."
brew install --cask vlc
echo "Installing iTerm2..."
brew install --cask iterm2
echo "Installing Visual Studio Code from homebrew..."
brew install --cask visual-studio-code
echo "Installing Sublime Text from homebrew..."
brew install --cask sublime-text
echo "Installing Firefox from homebrew..."
brew install --cask firefox
echo "Installing Spotify from homebrew..."
brew install --cask spotify
echo "Installing Rectangle from homebrew..."
brew install --cask rectangle
echo "Installing Docker from homebrew..."
brew install --cask docker
echo "Installing Notion from homebrew..."
brew install --cask notion
echo "Installing Discord from homebrew..."
brew install --cask discord
echo "Installing Balena Etcher from homebrew..."
brew install --cask balenaetcher
echo "Installing Google Chrome from homebrew..."
brew install --cask google-chrome
echo "Installing vim configuration..."
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
echo "Installing powerline fonts..."
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
echo "----------------------------------"
echo "| All Done! |"
echo "----------------------------------"
else
echo "Installation starts for Linux"
echo "Installing necessary tools..."
sudo apt install curl gcc make neofetch htop cmatrix vim zsh apt-transport-https ca-certificates gnupg lsb-release
echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
exit
echo "Installing vim configuration..."
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
echo "Installing powerline fonts..."
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
echo "Installing docker..."
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
echo "----------------------------------"
echo "| All Done! |"
echo "----------------------------------"
fi