-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·32 lines (27 loc) · 910 Bytes
/
install.sh
File metadata and controls
executable file
·32 lines (27 loc) · 910 Bytes
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
#!/bin/bash
GITHUB_URL="https://github.com"
dotfiles_dir="$(pwd)/$(dirname "$0")/dotfiles"
find "$dotfiles_dir" -type f -printf "%P\n" | while read -r file; do
mkdir -p ~/"$(dirname "$file")"
ln -s "$dotfiles_dir/$file" ~/"$file" 2>/dev/null
if [[ $? == 0 ]]; then
echo "Created symlink for $file"
fi
done
download() {
if [[ $# == 2 ]]; then
if [[ ! -d $2 ]]; then
git clone -q "$GITHUB_URL/$1" "$2"
echo "Downloaded $2"
fi
else
if [[ ! -f $3 ]]; then
curl -LSs "$GITHUB_URL/$1/raw/master/$2" -o "$3" --create-dirs
echo "Downloaded $3"
fi
fi
}
download dexpota/kitty-themes themes/Argonaut.conf ~/.config/kitty/theme.conf
download junegunn/vim-plug plug.vim ~/.vim/autoload/plug.vim
download seebi/dircolors-solarized dircolors.ansi-universal ~/.dircolors
download tarjoilija/zgen ~/.zgen