-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·37 lines (31 loc) · 1002 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
35
36
37
#!/usr/bin/env bash
# install required fonts
function install_fonts() {
target="$HOME/.local/share/fonts"
mkdir -p $target
# install apple SanFranciscoDisplay font
curl https://codeload.github.com/AppleDesignResources/SanFranciscoFont/zip/master \
--output SF.zip
unzip -j SF.zip SanFranciscoFont-master/SanFranciscoDisplay-\* -d $target/SanFranciscoDisplay
# cleanup
rm SF.zip
}
# symlink configs
function stow_con() {
# ignored files list
declare -a ignore_list=(".git"
".gitignore"
".gitmodules"
"README.md"
"screenshots"
)
# go throw all files except ignore list
for file in ~/.dotfiles/*; do
if [ -d ${file} ] && [[ ! ${file} =~ ${ignore_list[@]} ]]; then
stow $(basename $file)
if $SCRIPT_DEBUG; then echo "$(basename $file) stowed."; fi
fi
done
}
stow_con
install_fonts