forked from oconnor663/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·47 lines (39 loc) · 730 Bytes
/
install.sh
File metadata and controls
executable file
·47 lines (39 loc) · 730 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
44
45
46
47
#!/bin/bash
relative_path=`dirname $0`
ROOT=`cd "$relative_path"; pwd`
DOTFILES=~/.dotfiles
DOTFILES_OLD=~/.dotfiles-old
ln -snf "$ROOT" "$DOTFILES"
mkdir -p "$DOTFILES_OLD"
LINKED_FILES=(
bashrc
gitconfig
minttyrc
pentadactylrc
tmux.conf
vim
vimrc
xinitrc
xmobarrc
xmonad
Xresources
zshrc
inputrc
git-completion.bash
hg-prompt
)
for NAME in ${LINKED_FILES[*]}
do
DEST=~/".$NAME"
# Copy existing dotfiles (but not symlinks) into the old directory
if [ -e "$DEST" -a ! -L "$DEST" ]
then
mv "$DEST" "$DOTFILES_OLD/$NAME"
fi
ln -sfn "$ROOT/$NAME" "$DEST"
done
mkdir -p ~/.vim-tmp
if which gnome-terminal &> /dev/null
then
"$ROOT/gnome-terminal-colors-solarized/set_dark.sh"
fi