-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer
executable file
·37 lines (28 loc) · 1.24 KB
/
installer
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
## symbolic link files
mkdir -p ${HOME}/.config
curl -L https://github.com/footaku/dotfiles/archive/master.tar.gz | tar zxv
mv -f ${HOME}/dotfiles-master ${HOME}/dotfiles
xcode-select --install
ln -fnsv ${HOME}/dotfiles/git ${HOME}/.config/git
ln -fnsv ${HOME}/dotfiles/scripts ${HOME}/.config/scripts
ln -fnsv ${HOME}/dotfiles/ssh ${HOME}/.ssh
chmod 700 ${HOME}/dotfiles/ssh
chmod 600 ${HOME}/dotfiles/ssh/config
## git-completion
curl -L https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash \
-o ${HOME}/.config/scripts/git-completion.bash
## source
echo "" >> ${HOME}/.bash_profile
echo 'source ${HOME}/.config/scripts/git-completion.bash' >> ${HOME}/.bash_profile
echo "" >> ${HOME}/.bash_profile
echo 'source ${HOME}/.config/scripts/aliases' >> ${HOME}/.bash_profile
echo "" >> ${HOME}/.bash_profile
echo 'source ${HOME}/.config/scripts/functions' >> ${HOME}/.bash_profile
ln -fnsv ${HOME}/dotfiles/Brewfile ${HOME}/.config/Brewfile
cd ${HOME}/dotfiles
## gnu-command
echo '' >> ${HOME}/.bash_profile
echo 'export PATH=\"/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH\"' >> ${HOME}/.bash_profile
echo 'export PATH=\"/opt/homebrew/opt/grep/libexec/gnubin:$PATH\"' >> ${HOME}/.bash_profile
exit 0