1
1
#! /usr/bin/env bash
2
2
set -e
3
3
4
- DOTFILES_DIR=$( pwd)
5
-
6
4
if [[ $( uname) == ' Darwin' ]]; then
7
5
if [[ $( command -v brew) != 0 ]]; then
8
6
echo ' Installing Homebrew...'
@@ -22,33 +20,23 @@ if [[ $(uname) == 'Darwin' ]]; then
22
20
grep -Fxq ' $(brew --prefix)/bin/zsh' /etc/shells || sudo bash -c " echo $( brew --prefix) /bin/zsh >> /etc/shells"
23
21
chsh -s $( brew --prefix) /bin/zsh " $USER "
24
22
25
- ln -sf " $DOTFILES_DIR /bin/git-up" $( brew --prefix) /bin/
26
- ln -sf " $DOTFILES_DIR /bin/chktf" $( brew --prefix) /bin/
23
+ ln -sf " $( PWD ) /bin/git-up" $( brew --prefix) /bin/
24
+ ln -sf " $( PWD ) /bin/chktf" $( brew --prefix) /bin/
27
25
28
26
sh ./macos.sh
29
- fi
30
-
31
- ln -sf " $DOTFILES_DIR /.zshrc" ~
32
- ln -sf " $DOTFILES_DIR /.gitconfig" ~
33
- ln -sf " $DOTFILES_DIR /.gitconfig-personal" ~
34
- ln -sf " $DOTFILES_DIR /.gitconfig-work" ~
35
- ln -sf " $DOTFILES_DIR /.tmux.conf" ~
36
- ln -sf " $DOTFILES_DIR /.vimrc" ~
37
- ln -sf " $DOTFILES_DIR /.ansible.cfg" ~
38
- ln -sf " $DOTFILES_DIR /.curlrc" ~
39
- ln -sf " $DOTFILES_DIR /.alias" ~
40
- ln -sf " $DOTFILES_DIR /.functions" ~
41
- ln -sf " $DOTFILES_DIR /config" ~ /.ssh/
42
- ln -sf " $DOTFILES_DIR /.alacritty.toml" ~
43
- ln -sf " $DOTFILES_DIR /.ripgreprc" ~
44
27
45
- git clone https://github.com/zsh-users/zsh-autosuggestions ~ /.zsh/zsh-autosuggestions
46
- # git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
47
-
48
- # git clone https://github.com/hashivim/vim-terraform.git ~/.vim/pack/plugins/start/vim-terraform
49
- # git clone https://github.com/editorconfig/editorconfig-vim.git ~/.vim/pack/plugins/start/editorconfig-vim
50
- # git clone https://github.com/dracula/vim.git ~/.vim/pack/themes/start/dracula
51
-
52
- # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins
28
+ git clone https://github.com/zsh-users/zsh-autosuggestions ~ /.zsh/zsh-autosuggestions
29
+ fi
53
30
54
- exit 0;
31
+ ln -sf " $( PWD) /.zshrc" ~
32
+ ln -sf " $( PWD) /.gitconfig" ~
33
+ ln -sf " $( PWD) /.gitconfig-personal" ~
34
+ ln -sf " $( PWD) /.gitconfig-work" ~
35
+ ln -sf " $( PWD) /.tmux.conf" ~
36
+ ln -sf " $( PWD) /.vimrc" ~
37
+ ln -sf " $( PWD) /.curlrc" ~
38
+ ln -sf " $( PWD) /.alias" ~
39
+ ln -sf " $( PWD) /.functions" ~
40
+ ln -sf " $( PWD) /config" ~ /.ssh/
41
+ ln -sf " $( PWD) /.alacritty.toml" ~
42
+ ln -sf " $( PWD) /.ripgreprc" ~
0 commit comments