feat(core): add a script for quickly getting stuff installed
This commit is contained in:
parent
54bedf5588
commit
44d8c3c677
1 changed files with 23 additions and 0 deletions
23
scripts/install.bash
Executable file
23
scripts/install.bash
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -x $(command -v zypper) ]; then
|
||||
sudo zypper install --type pattern devel_basis
|
||||
sudo zypper install libopenssl-deve
|
||||
else
|
||||
echo "ERROR: Package manager not found. Could not install"
|
||||
fi
|
||||
|
||||
if [ ! -x $(command -v cargo) ]; then
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
source "$HOME/.cargo/env"
|
||||
fi
|
||||
|
||||
if [ ! -x $(command -v configz) ]; then
|
||||
cargo install --git https://github.com/AdeAttwood/Configz
|
||||
fi
|
||||
|
||||
if [ ! -d ~/Code/src/github.com/AdeAttwood/Dotfiles ]; then
|
||||
git clone https://github.com/AdeAttwood/Dotfiles.git ~/Code/src/github.com/AdeAttwood/Dotfiles
|
||||
fi
|
||||
|
||||
echo "cd ~/Code/src/github.com/AdeAttwood/Dotfiles"
|
||||
Loading…
Reference in a new issue