-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·29 lines (23 loc) · 1.01 KB
/
install.sh
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
#!/bin/bash
create_symlinks() {
# Get the directory in which this script lives.
script_dir=$(dirname "$(readlink -f "$0")")
# Get a list of all files in this directory that start with a dot.
files=$(find -maxdepth 1 -type f -name ".*")
# Create a symbolic link to each file in the home directory.
for file in $files; do
name=$(basename $file)
echo "Creating symlink to $name in home directory."
rm -rf ~/$name
ln -s $script_dir/$name ~/$name
done
}
echo "Creating symlinks..."
create_symlinks
echo "Setting up Oh My Zsh Spaceship theme..."
sudo apt-get update && sudo apt-get install powerline fonts-powerline -y
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom"
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
echo "Setting up Terraform..."
git clone https://github.com/tfutils/tfenv.git ~/.tfenv --depth=1