|
|
@ -44,6 +44,14 @@ function symlink() {
|
|
|
|
cecho green " + Creating symlink to '$2' ..."
|
|
|
|
cecho green " + Creating symlink to '$2' ..."
|
|
|
|
ln -s $2 $name
|
|
|
|
ln -s $2 $name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function ask() {
|
|
|
|
|
|
|
|
cecho white " ? Install file '$1'? [N/y] "
|
|
|
|
|
|
|
|
input c
|
|
|
|
|
|
|
|
if [ "$c" == "y" -o "$c" == "Y" ] ; then
|
|
|
|
|
|
|
|
backup_file "$1"
|
|
|
|
|
|
|
|
symlink "$1" "$2"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#######
|
|
|
|
#######
|
|
|
|
# vim #
|
|
|
|
# vim #
|
|
|
@ -79,7 +87,7 @@ else
|
|
|
|
git clone -q https://github.com/robbyrussell/oh-my-zsh.git "${MY_PATH}/opt/oh-my-zsh"
|
|
|
|
git clone -q https://github.com/robbyrussell/oh-my-zsh.git "${MY_PATH}/opt/oh-my-zsh"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
while [ ! "$MTYPE" == "PC" -a ! "$MTYPE" == "SERVER" ] ; do
|
|
|
|
while [ ! "$MTYPE" == "PC" -a ! "$MTYPE" == "SERVER" ] ; do
|
|
|
|
cecho white "Is this a server of a PC? [s|p] > "
|
|
|
|
cecho white " ? Is this a server of a PC? [s|p] > "
|
|
|
|
read mt
|
|
|
|
read mt
|
|
|
|
case $mt in
|
|
|
|
case $mt in
|
|
|
|
[Ss]*)
|
|
|
|
[Ss]*)
|
|
|
@ -120,6 +128,7 @@ if [ "$MTYPE" == "PC" ] ; then
|
|
|
|
backup_file "~/.i3status.conf"
|
|
|
|
backup_file "~/.i3status.conf"
|
|
|
|
symlink "~/.i3" "${MY_PATH}/i3"
|
|
|
|
symlink "~/.i3" "${MY_PATH}/i3"
|
|
|
|
symlink "~/.i3status.conf" "${MY_PATH}/i3/i3status.conf"
|
|
|
|
symlink "~/.i3status.conf" "${MY_PATH}/i3/i3status.conf"
|
|
|
|
|
|
|
|
ask "~/.xprofile" "${MY_PATH}/xprofile"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
cecho yellow " > skipping "
|
|
|
|
cecho yellow " > skipping "
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -134,6 +143,7 @@ if [ "$MTYPE" == "PC" ] ; then
|
|
|
|
backup_file "~/.pentadactylrc"
|
|
|
|
backup_file "~/.pentadactylrc"
|
|
|
|
symlink "~/.xinitrc" "${MY_PATH}/xinitrc"
|
|
|
|
symlink "~/.xinitrc" "${MY_PATH}/xinitrc"
|
|
|
|
symlink "~/.pentadactylrc" "${MY_PATH}/pentadactylrc"
|
|
|
|
symlink "~/.pentadactylrc" "${MY_PATH}/pentadactylrc"
|
|
|
|
|
|
|
|
ask "~/.gitconfig" "${MY_PATH}/gitconfig"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
symlink "~/bin" "${MY_PATH}/bin"
|
|
|
|
symlink "~/bin" "${MY_PATH}/bin"
|
|
|
|