-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathMakeFile.sh
More file actions
46 lines (36 loc) · 708 Bytes
/
MakeFile.sh
File metadata and controls
46 lines (36 loc) · 708 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
#!/bin/bash
cd .
CF_DIR=`pwd`
#.bash_profile
ln -sf $CF_DIR/aliases/bash_profile ~/.bash_profile
#alias
ALIASES_DIR="$CF_DIR/aliases"
ALIASES_FILES=`ls $ALIASES_DIR/*aliases`
for f in $ALIASES_FILES
do
F_NAME=`basename $f`
ln -sf $f ~/"."$F_NAME
done
#dir_colors
ln -sf $ALIASES_DIR/dir_colors ~/.dir_colors
#completion
COMPLETION_DIR="$CF_DIR/completions"
ALIASES_FILES=`ls $COMPLETION_DIR/*completion`
for f in $ALIASES_FILES
do
F_NAME=`basename $f`
ln -sf $f ~/"."$F_NAME
done
#vim config
ln -sf $CF_DIR/vim ~/.vim
if [ -L $CF_DIR/vim/vim ]
then
rm $CF_DIR/vim/vim
fi
ln -sf $CF_DIR/vim/vimrc ~/.vimrc
#bin
ln -sf $CF_DIR/bin ~/bin
if [ ! -d ~/tmp ]
then
mkdir ~/tmp
fi