-
Notifications
You must be signed in to change notification settings - Fork 16
/
install.sh
executable file
·34 lines (26 loc) · 1023 Bytes
/
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
30
31
32
33
34
#!/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
}
create_symlinks
echo "Initializing conda for zsh."
conda init zsh
echo "Installing fonts."
FONT_DIR="$HOME/.fonts"
git clone https://github.com/powerline/fonts.git $FONT_DIR --depth=1
cd $FONT_DIR
./install.sh
echo "Setting up the Spaceship theme."
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"