forked from jm/shin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
53 lines (43 loc) · 1.64 KB
/
install.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
echo "
/¯¯¯¯/|¯¯¯¯|‘'|¯¯¯¯|'|¯¯¯¯|°|¯¯¯¯| |¯¯¯¯\ |¯¯¯¯|'
\___ '\|____| '| .:|_| | |.::.| | .::|\\ | .:.|'
|¯¯¯¯|\ ¯¯¯\''| |¯|.:.| |.:.:| |::..|||/::.. |‘
|____|/____/|'|____|¯|____| |____| |____| '\_____|
|;;;;;;;;'|'|'|;;;||'||;;;| |;;;;| |;;;;|\ |;;;;;|
|_________|/ '|___|| ||___|‘|____| |____| \|____ |
============================================================================
THE PACKAGE MANAGER YOU AND YOUR DOTFILES WISH YOU HAD AND NOW DO SO YEAH!
============================================================================
"
if [ -e "$HOME/.shin" ]
then
echo
echo "Whoa, there! Looks like you've already installed shin."
echo "You'll need to be removing that existing install at $HOME/.shin."
echo
exit
fi
echo "OK, so basically I'm going to install a few files to ~/.shin and append some
shell goodness to .profile in a safe way. Is that cool? (yes/no)"
read choice
if [ "$choice" = "yes" ]
then
echo "OK, creating the directories I need..."
mkdir -p "$HOME/.shin"
echo ""
echo "Now I'm cloning shin..."
return_to=`$pwd`
cd "$HOME/.shin"
git clone git://github.com/jm/shin.git system
echo ""
echo "Installing my little shell initializer..."
touch "$HOME/.profile"
cat "$HOME/.shin/system/initializer.sh" >> "$HOME/.profile"
echo ""
echo "OK, all done!"
cd $return_to
else
echo
echo "Run me again if you end up wanting to install shin!"
echo
fi