-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·46 lines (35 loc) · 1.26 KB
/
deploy.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
#!/bin/bash
# Make links from home configuration git repository files
# to the places the are expected in the home directory.
ln -f -s $HOME/homeConfig/dot.emacs.el $HOME/.emacs
ln -f -s $HOME/homeConfig/basic.el $HOME/.basic.el
if [ ! -e $HOME/.emacs-site-lisp ]
then
ln -f -s $HOME/homeConfig/dot.emacs-site-lisp $HOME/.emacs-site-lisp
fi
if [ ! -e $HOME/.emacs-site-lisp/use-package ]
then
ln -f -s $HOME/homeConfig/use-package $HOME/.emacs-site-lisp/
fi
mkdir -p $HOME/.emacs.d
ln -f -s $HOME/bin/psh.pl $HOME/.emacs.d/psh.pl
ln -f -s $HOME/homeConfig/profile.sh $HOME/.profile
ln -f -s $HOME/homeConfig/bashrc.sh $HOME/.bashrc
mkdir -p $HOME/bin
for FILE in $( ls $HOME/homeConfig/bin )
do
ln -f -s $HOME/homeConfig/bin/$FILE $HOME/bin
done
mkdir -p $HOME/.ssh
chmod 700 $HOME/.ssh
chmod 700 $HOME/homeConfig/ssh_config
ln -f -s $HOME/homeConfig/ssh_config $HOME/.ssh/config
mkdir -p $HOME/.config/awesome
if [ !-e $home/.config/awesome/rc.lua ]
then
ln -f -s $HOME/homeConfig/awesome/rc.lua $HOME/.config/awesome/rc.lua
fi
cd $HOME
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone https://github.com/pyenv/pyenv-virtualenv.git .pyenv/plugins/pyenv-virtualenv
echo "Still to do: font config, awesome, emacs, helm-taskswitch'