Commit af70ad38 authored by Mattia Rizzolo's avatar Mattia Rizzolo

remove VirtuaBox.xml from tracked file and add ssh/config. add irssi and mutt...

remove VirtuaBox.xml from tracked file and add ssh/config. add irssi and mutt to package to be installed. add a personal function to create /home/mattia/Music symlink. add a function to create symlink from /home/mattia/Dropbox to /home/mattia. add a help function
parent d3918786
......@@ -9,7 +9,7 @@ dotfiles=(vimrc
gitconfig
pastebinit.xml
xchat2/xchat.conf xchat2/servlist_.conf xchat2/notify.conf xchat2/chanserv-mod.py
VirtualBox/VirtualBox.xml
ssh/config
mutt/muttrc mutt/mutt.sh mutt/signature mutt/colors mutt/gpg irssi/config
)
files=(pbuilder/hooks
......@@ -39,6 +39,8 @@ packages=(geany
terminator
unity-tweak-tool
vim
mutt
irssi
flashplugin-installer
prelink preload
steam
......@@ -86,9 +88,17 @@ personal () {
fi
fi
}
musiclink () {
if [ -d $HOME/Music && -e /media/Dati/Music ] ; then
echo "Creating $HOME/Music symlink"
rmdir $HOME/Music
ln -s /media/Dati/Music $HOME/Music
fi
}
sublime
prelink
musiclink
}
# This function create files, directories and symlinks, as needed
......@@ -182,6 +192,34 @@ install () {
sudo apt-get install -y ${package}
}
dropboxlinks () {
echo "Creating link to Dropbox folder"
DIRShome=(Documents Pictures Public Templates)
DIRSrootdb=(Develop FCM)
for dir in ${DIRShome[@]}; do
if ( [ -d $HOME/${dir} ] || [ ! -e $HOME/${dir} ] ) && [ -d $HOME/Dropbox/home/${dir} ] ; then
if [ -e $HOME/${dir} ] ; then rmdir $HOME/${dir} ; fi
ln -s $HOME/Dropbox/home/${dir} $HOME/${dir}
fi
done
for dir in ${DIRSrootdb[@]}; do
if ( [ -d $HOME/${dir} ] || [ ! -e $HOME/${dir} ] ) && [ -d $HOME/Dropbox/${dir} ] ; then
if [ -d $HOME/${dir} ] ; then rmdir $HOME/${dir} ; fi
ln -s $HOME/Dropbox/${dir} $HOME/${dir}
fi
done
}
help () {
cat << EOF
Valid options are:
-a Add repositories
-i First-installation useful stuff (apt-get update/upgrade)
-h Show this help
EOF
}
while getopts ":ai" opt; do
case $opt in
a)
......@@ -193,11 +231,12 @@ while getopts ":ai" opt; do
sudo apt-get update
sudo apt-get dist-upgrade -y
;;
h)
help
;;
*)
echo "Unrecognised option: -$OPTARG."
echo "Valid options are:"
echo " -a Add repositories"
echo " -i First-installation useful stuff (apt-get update/upgrade)"
help
exit 1
;;
esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment