-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·36 lines (31 loc) · 1.06 KB
/
install
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
#\!/usr/bin/env sh
echo "Installing your dotfiles..."
# Check if the file does not exist
if [ ! -f ~/.bashrc ]; then
echo "No .bashrc present. We will create one."
ln -sv $HOME/.dotfiles/bash/bashrc ~/.bashrc
else
echo "You've already added your .bashrc"
fi
echo "Now we're adding application config files..."
# Check if the file does not exist
if [ ! -f ~/.vimrc ]; then
echo "No .vimrc present. We will create one."
ln -sv $HOME/.dotfiles/config/vimrc ~/.vimrc
else
echo "You've already added your .vimrc"
fi
# Check if the git files do not exist
if [ ! -f ~/.gitconfig ]; then
echo "No .gitconfig present. We will create one."
ln -sv $HOME/.dotfiles/config/gitconfig ~/.gitconfig
else
echo "You've already added your .gitconfig"
fi
if [ ! -f ~/.gitignore-global ]; then
echo "No .gitignore-global present. We will create one."
ln -sv $HOME/.dotfiles/config/gitignore-global ~/.gitignore-global
else
echo "You've already added your .gitignore-global"
fi
echo "Finished. Isn't this an easier way to keep your dotfiles in sync? 😎"