-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_hot-sauce
159 lines (135 loc) · 7.46 KB
/
dot_hot-sauce
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/usr/bin/env zsh
###############################################################################
# Variables
###############################################################################
WORKSPACE=$DROPBOX/.the.setup
SLAY_SCREENSHOTS="$HOME/@Inbox/@Screenshots"
SLAY_HOSTNAME="Peppermint"
DIRECTORIES=(
$HOME/@Inbox
$HOME/@Inbox/@Apps
$HOME/@Inbox/@Audio
$HOME/@Inbox/@Design
$HOME/@Inbox/@Documents
$HOME/@Inbox/@Folders
$HOME/@Inbox/@Images
$HOME/@Inbox/@Misc
$HOME/@Inbox/@Movies
$HOME/@Inbox/@Outbox
$HOME/@Inbox/@Screenshots
$HOME/@Inbox/@Zips
$HOME/@Projects
$HOME/@Projects/@beyhive
$HOME/@Projects/@wip
)
EMOJIONE_URL="https://github.com/emojione/emojione-assets/releases/download/3.1.2/emojione-apple.ttf"
NERDFONTS_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/ryanoasis/nerd-fonts/releases/latest)
NERDFONTS_VERSION=$(get_github_version $NERDFONTS_RELEASE)
NERDFONTS=(
Hack
AnonymousPro
Inconsolata
)
###############################################################################
# Customizations
###############################################################################
step "Making directories…"
for dir in ${DIRECTORIES[@]}; do
mkd $dir
done
if [[ $(cli_is_installed fileicon) == 1 ]]; then
echo "${indent} ︎︎❤︎ Customizing folder icons…"
fileicon set $HOME/@Inbox $WORKSPACE/icons/folders--gradient/downloads/icon-folders/download-folder.png
fileicon set $HOME/@Inbox/@Apps $WORKSPACE/icons/folders--gradient/downloads/icon-folders/heart-folder.png
fileicon set $HOME/@Inbox/@Audio $WORKSPACE/icons/folders--gradient/downloads/icon-folders/music-folder.png
fileicon set $HOME/@Inbox/@Documents $WORKSPACE/icons/folders--gradient/downloads/icon-folders/documents-folder.png
fileicon set $HOME/@Inbox/@Folders $WORKSPACE/icons/folders--gradient/downloads/icon-folders/star-folder.png
fileicon set $HOME/@Inbox/@Images $WORKSPACE/icons/folders--gradient/downloads/icon-folders/photos-folder.png
fileicon set $HOME/@Inbox/@Misc $WORKSPACE/icons/folders--gradient/downloads/icon-folders/bin-folder.png
fileicon set $HOME/@Inbox/@Movies $WORKSPACE/icons/folders--gradient/downloads/icon-folders/video-folder.png
fileicon set $HOME/@Inbox/@Screenshots $WORKSPACE/icons/folders--gradient/downloads/icon-folders/screenshots-folder.png
fileicon set $HOME/@Inbox/@Zips $WORKSPACE/icons/folders--gradient/downloads/icon-folders/smile-folder.png
fileicon set $PROJECTS $WORKSPACE/icons/folders--gradient/downloads/icon-folders/crown-folder.png
if [ -d "$HOME/Dropbox" ]; then
fileicon set $DROPBOX/@financial $WORKSPACE/icons/folders--gradient/downloads/icon-folders/money-folder.png
fileicon set $DROPBOX/@legacy $WORKSPACE/icons/folders--gradient/downloads/icon-folders/heart-folder.png
fileicon set $DROPBOX/@legal $WORKSPACE/icons/folders--gradient/downloads/icon-folders/doodle-folder.png
fileicon set $DROPBOX/@medical $WORKSPACE/icons/folders--gradient/downloads/icon-folders/sparkles-folder.png
fileicon set $DROPBOX/apps $WORKSPACE/icons/folders--gradient/downloads/icon-folders/download-folder.png
fileicon set $DROPBOX/brag.file $WORKSPACE/icons/folders--gradient/downloads/icon-folders/crown-folder.png
fileicon set $DROPBOX/documents $WORKSPACE/icons/folders--gradient/downloads/icon-folders/documents-folder.png
fileicon set $DROPBOX/front.porch $WORKSPACE/icons/folders--gradient/downloads/icon-folders/smile-folder.png
fileicon set $DROPBOX/learning $WORKSPACE/icons/folders--gradient/downloads/icon-folders/z-js-folder.png
fileicon set $DROPBOX/personal $WORKSPACE/icons/folders--gradient/downloads/icon-folders/calligraphy-folder.png
fileicon set $DROPBOX/Photos $WORKSPACE/icons/folders--gradient/downloads/icon-folders/photos-folder.png
fileicon set $DROPBOX/projects $WORKSPACE/icons/folders--gradient/downloads/icon-folders/code-folder.png
fileicon set $DROPBOX/resources $WORKSPACE/icons/folders--gradient/downloads/icon-folders/type-folder.png
fileicon set $DROPBOX/shared $WORKSPACE/icons/folders--gradient/downloads/icon-folders/star-folder.png
fileicon set $DROPBOX/speaking $WORKSPACE/icons/folders--gradient/downloads/icon-folders/talks-folder.png
fileicon set $DROPBOX/the.setup $WORKSPACE/icons/folders--gradient/downloads/icon-folders/home-folder.png
fi
print_in_green "${bold}✓ done!${normal}\n"
else
print_error "fileicon must be installed! Skipping."
fi
step "Symlinking files…"
symlink_dotfiles
printf "\n"
step "Cloning repositories..."
git clone git@github.com:minamarkham/dotfiles.git $HOME/.dotfiles
git clone git@github.com:minamarkham/cupcake.git $PROJECTS/@cupcake
git clone git@github.com:minamarkham/mdash.wtf.git $PROJECTS/@mdash
git clone git@github.com:minamarkham/setup.git $PROJECTS/setup
git clone git@github.com:minamarkham/speedlify.git $PROJECTS/speedlify
git clone git@github.com:minamarkham/twitter-archive.git $PROJECTS/twitter-archive
git clone git@github.com:minamarkham/minamarkham.git $PROJECTS/minamarkham
git clone git@github.com:minamarkham/yonce.git $BEYHIVE/yonce
git clone git@github.com:minamarkham/yonce-vscode.git $BEYHIVE/yonce-vscode
git clone git@github.com:minamarkham/yonce-prompt.git $BEYHIVE/yonce-prompt
git clone git@github.com:minamarkham/yonce-visual-studio.git $BEYHIVE/yonce-visual-studio
git clone git@github.com:minamarkham/formation.git $BEYHIVE/formation
git clone git@github.com:minamarkham/httpbey.git $BEYHIVE/httpbey
git clone git@github.com:minamarkham/711ty.git $BEYHIVE/711ty
git clone git@github.com:minamarkham/beyonce-ipsum.git $WIP/beyonce-ipsum
git clone git@github.com:minamarkham/xo.git $WIP/XO
git clone git@github.com:minamarkham/beygifs.git $WIP/beygifs
git clone git@github.com:minamarkham/partition.git $WIP/partition
step "Customizing Mac…"
if [ $HOSTNAME != $SLAY_HOSTNAME ]; then
printf "${indent} ❤︎ Setting computer name… "
scutil --set ComputerName $SLAY_HOSTNAME && \
scutil --set HostName $SLAY_HOSTNAME && \
scutil --set LocalHostName $SLAY_HOSTNAME
print_in_green "${bold}✓ done!${normal}\n"
else
print_muted "${indent}✓ Computer name already set. Skipped."
fi
echo "${indent} ︎︎❤︎ Showing hidden files…"
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder
echo "${indent} ︎︎❤︎ Configuring screenshots…"
defaults write com.apple.screencapture type jpg
defaults write com.apple.screencapture location $SLAY_SCREENSHOTS
killall SystemUIServer
step "Switching emojis to EmojiOne…"
if [ ! -f ~/Library/Fonts/emojione-apple.ttf ]; then
printf "${indent} [↓] EmojiOne "
wget -P ~/Library/Fonts $EMOJIONE_URL --quiet
print_in_green "${bold}✓ done!${normal}\n"
else
print_muted "${indent}✓ EmojiOne already installed. Skipped."
fi
step "Installing fonts…"
for font in ${NERDFONTS[@]}; do
if [ ! -d ~/Library/Fonts/$font ]; then
printf "${indent} [↓] $font "
wget -P ~/Library/Fonts https://github.com/ryanoasis/nerd-fonts/releases/download/$NERDFONTS_VERSION/$font.zip --quiet;unzip -q ~/Library/Fonts/$font -d ~/Library/Fonts/$font
print_in_green "${bold}✓ done!${normal}\n"
else
print_muted "${indent}✓ $font already installed. Skipped."
fi
done
###############################################################################
# OPTIONAL: Follow-ups
###############################################################################
title "Next steps…"
todo "Complete setup checklist: ${bold}https://github.com/minamarkham/setup/blob/master/checklist.md${reset}"