File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ source common/functions.sh
2+
3+ # .ssh/config
4+ if [ -f " ssh/config" ]; then
5+ msg_installing " ~/.ssh/config"
6+ sudo ln -s ssh/config ~ /.ssh/config
7+ fi
8+
9+ # .gitconfig
10+ if [ -f " git/.gitconfig" ]; then
11+ msg_installing " ~/.gitconfig"
12+ sudo ln -s git/.gitconfig ~ /.gitconfig
13+ fi
14+
15+ # .editorconfig
16+ if [ -f " .editorconfig" ]; then
17+ msg_installing " ~/.editorconfig"
18+ sudo ln -s init/.editorconfig ~ /.editorconfig
19+ fi
20+
21+ # .gitignore
22+ if [ -f " git/.gitignore_global" ]; then
23+ msg_installing " ~/.gitignore_global"
24+ sudo ln -s git/.gitignore ~ /.gitignore
25+ git config --global core.excludesfile ~ /.gitignore
26+ fi
27+
28+ # .profile
29+ if [ -f " .bash_profile" ]; then
30+ msg_installing " .bash_profile"
31+ sudo ln -s bash/.bash_profile ~ /.bash_profile
32+ source ~ /.bash_profile
33+ msg_alert " For use on this session, type: source ~/.bash_profile"
34+ fi
Original file line number Diff line number Diff line change 1+ # #################
2+ # Code # Color #
3+ # #################
4+ # 00 # Off #
5+ # 30 # Black #
6+ # 31 # Red #
7+ # 32 # Green #
8+ # 33 # Yellow #
9+ # 34 # Blue #
10+ # 35 # Magenta #
11+ # 36 # Cyan #
12+ # 37 # White #
13+ # #################
14+ function print { echo " \033[1;32m=> $1 \033[0m" ; }
15+ function msg_checking { echo " \033[1;32m=> $1 ✔\033[0m" ; }
16+ function msg_installing { echo " \033[1;33m==> $1 [updating] ✔\033[0m" ; }
17+ function msg_install { echo " \033[1;33m==> $1 [installing]: $ $2 \033[0m" ; }
18+ function msg_ok { echo " \033[1;32m==> $1 installed ✔\033[0m" ; }
19+ function msg { echo " \033[0;32m$1 \033[0m" ; }
20+ function msg_alert { echo " \033[1;31m✖ $1 ✖\033[0m" ; }
You can’t perform that action at this time.
0 commit comments