File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 10
10
source " ${DOT_FILES_PATH} /common/load.sh"
11
11
echo
12
12
echo -n -e " \033]0;Dev Environment\007"
13
- echo Mac OS Dev Environment
13
+ echo Dev Environment
14
14
echo Welcome ${USER} !
15
15
echo
16
16
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
1
4
2
5
export DOT_FILES=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
3
6
4
- echo
5
- echo " Caution, this will link profile and dotfiles in home."
6
- read -p " Continue? " -n 1 -r
7
- echo
7
+ echo " Installing dotfiles from $DOT_FILES "
8
+
9
+ rm " ${DOT_FILES} /.DS_Store" > /dev/null 2>&1 || true
8
10
9
- # symlink
10
- if [[ $REPLY =~ ^[Yy]$ ]]
11
- then
12
- echo
13
- rm " ${DOT_FILES} /.DS_Store"
11
+ for filename in ${DOT_FILES} /.* ; do
12
+ if [ -f ${filename} ]; then
13
+ echo " linking ${filename} "
14
+ ln -sf " ${filename} " " ${HOME} "
15
+ fi
16
+ done
14
17
15
- for filename in ${DOT_FILES} /.* ; do
16
- if [ -f ${filename} ]; then
17
- echo " linking ${filename} "
18
- ln -sf " ${filename} " " ${HOME} "
19
- fi
20
- done
21
- echo
22
- fi
18
+ sudo chsh -s " $( which zsh) " " $( whoami) "
You can’t perform that action at this time.
0 commit comments