Skip to content

Commit 11053f2

Browse files
update for cs
1 parent 271e207 commit 11053f2

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ clear
1010
source "${DOT_FILES_PATH}/common/load.sh"
1111
echo
1212
echo -n -e "\033]0;Dev Environment\007"
13-
echo Mac OS Dev Environment
13+
echo Dev Environment
1414
echo Welcome ${USER}!
1515
echo
1616

setup.sh

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1+
#!/bin/bash
2+
3+
set -e
14

25
export DOT_FILES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
36

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
810

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
1417

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)"

0 commit comments

Comments
 (0)