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 ...@@ -9,7 +9,7 @@ dotfiles=(vimrc
gitconfig gitconfig
pastebinit.xml pastebinit.xml
xchat2/xchat.conf xchat2/servlist_.conf xchat2/notify.conf xchat2/chanserv-mod.py 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 mutt/muttrc mutt/mutt.sh mutt/signature mutt/colors mutt/gpg irssi/config
) )
files=(pbuilder/hooks files=(pbuilder/hooks
...@@ -39,6 +39,8 @@ packages=(geany ...@@ -39,6 +39,8 @@ packages=(geany
terminator terminator
unity-tweak-tool unity-tweak-tool
vim vim
mutt
irssi
flashplugin-installer flashplugin-installer
prelink preload prelink preload
steam steam
...@@ -86,9 +88,17 @@ personal () { ...@@ -86,9 +88,17 @@ personal () {
fi fi
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 sublime
prelink prelink
musiclink
} }
# This function create files, directories and symlinks, as needed # This function create files, directories and symlinks, as needed
...@@ -182,6 +192,34 @@ install () { ...@@ -182,6 +192,34 @@ install () {
sudo apt-get install -y ${package} 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 while getopts ":ai" opt; do
case $opt in case $opt in
a) a)
...@@ -193,11 +231,12 @@ while getopts ":ai" opt; do ...@@ -193,11 +231,12 @@ while getopts ":ai" opt; do
sudo apt-get update sudo apt-get update
sudo apt-get dist-upgrade -y sudo apt-get dist-upgrade -y
;; ;;
h)
help
;;
*) *)
echo "Unrecognised option: -$OPTARG." echo "Unrecognised option: -$OPTARG."
echo "Valid options are:" help
echo " -a Add repositories"
echo " -i First-installation useful stuff (apt-get update/upgrade)"
exit 1 exit 1
;; ;;
esac 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