-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·43 lines (35 loc) · 846 Bytes
/
setup.sh
File metadata and controls
executable file
·43 lines (35 loc) · 846 Bytes
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
#!/bin/bash
ORG_DIR=`pwd`
for i in zshrc vimrc vim gvimrc screenrc tmux.conf gitconfig irssi ansible.cfg p10k.zsh iterm2_shell_integration.zsh
do
if [ -f $HOME/.$i ]
then
echo "File .$i already exists, making backup copy"
mv $HOME/.$i $HOME/.$i.bak-`date +"%Y%m%d%H%M%S"`
fi
ln -s $ORG_DIR/$i $HOME/.$i
done
touch $HOME/.zshrc_private
mkdir -p $HOME/bin
for i in $ORG_DIR/bin/*
do
f=`basename $i`
if [ ! -f $HOME/bin/$f ]
then
ln -s $ORG_DIR/bin/$f $HOME/bin/$f
fi
done
mkdir -p ~/tmp/backup
mkdir -p ~/tmp/screen
chmod 0700 ~/tmp/screen
which ctags > /dev/null
if [ $? -ne 0 ]
then
echo "NO CTAGS INSTALLED"
fi
if [ "x`uname`" = "xDarwin" ]
then
mkdir -p $HOME/Pictures/screenshots
defaults write com.apple.screencapture location $HOME/Pictures/screenshots
killall SystemUIServer
fi