Removed synapse from desktop.txt. Fixed <BS> in insert mode in vimrc. Fixed sync.sh flags for the last time! (hopefully)
This commit is contained in:
parent
b045f98e6a
commit
cdc43ca60f
@ -1,6 +1,7 @@
|
|||||||
#sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" apps.txt | tr "\n" " ")
|
#sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" apps.txt | tr "\n" " ")
|
||||||
#apt-get remove ubuntuone* python3-oneconf
|
#apt-get remove ubuntuone* python3-oneconf
|
||||||
synapse
|
#Synapse removed because deb is not present in current repos :(
|
||||||
|
#synapse
|
||||||
synaptic
|
synaptic
|
||||||
#python3.2
|
#python3.2
|
||||||
python-pip
|
python-pip
|
||||||
|
121
sync.sh
121
sync.sh
@ -1,87 +1,50 @@
|
|||||||
#Install server applications
|
|
||||||
while getopts :s option
|
|
||||||
do
|
|
||||||
case "$option" in
|
|
||||||
s)
|
|
||||||
echo "Preparing server installation"
|
|
||||||
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
#Install desktop applications
|
|
||||||
while getopts :d option
|
|
||||||
do
|
|
||||||
case "$option" in
|
|
||||||
d)
|
|
||||||
echo "Installing desktop applications"
|
|
||||||
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
#Tmux sync
|
|
||||||
while getopts :t option
|
|
||||||
do
|
|
||||||
case "$option" in
|
|
||||||
t)
|
|
||||||
echo "Syncing tmux"
|
|
||||||
trash ~/.tmux.conf
|
|
||||||
ln -s ${PWD}/tmux.conf ~/.tmux.conf
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
#Quit if -o is called
|
|
||||||
while getopts :o option
|
|
||||||
do
|
|
||||||
case "$option" in
|
|
||||||
o)
|
|
||||||
echo "Exiting"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.gitignore_global ~/.bashrc
|
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.gitignore_global ~/.bashrc
|
||||||
ln -s ${PWD}/gitignore_global ~/.gitignore_global
|
ln -s ${PWD}/gitignore_global ~/.gitignore_global
|
||||||
ln -s ${PWD}/vimrc ~/.vimrc
|
ln -s ${PWD}/vimrc ~/.vimrc
|
||||||
ln -s ${PWD}/vimperatorrc ~/.vimperatorrc
|
ln -s ${PWD}/vimperatorrc ~/.vimperatorrc
|
||||||
ln -s ${PWD}/gitconfig ~/.gitconfig
|
ln -s ${PWD}/gitconfig ~/.gitconfig
|
||||||
ln -s ${PWD}/bashrc ~/.bashrc
|
ln -s ${PWD}/bashrc ~/.bashrc
|
||||||
if [ -f ~/.vim/plugin/ ]
|
while getopts ":bsdto" VALUE "$@"; do
|
||||||
then
|
echo "Processing flag: $VALUE"
|
||||||
echo "Installing plugin folder in ~/.vim/"
|
if [ "$VALUE" = "b" ] ; then
|
||||||
mkdir -p ~/.vim/plugin/
|
#Install vim bundles
|
||||||
fi
|
mkdir -p ~/.vim/plugin/
|
||||||
if [ -f ~/.vim/plugin/backup/ ]
|
mkdir -p ~/.vim/backup/
|
||||||
then
|
mkdir -p ~/.vim/undo/
|
||||||
echo "Installing backup folder in ~/.vim/"
|
mkdir -p ~/.vim/tmp/
|
||||||
mkdir -p ~/.vim/backup/
|
mkdir -p ~/.vim/bundle/
|
||||||
fi
|
mkdir -p ~/.vim/bundle/
|
||||||
if [ -f ~/.vim/plugin/undo/ ]
|
echo "Installing vim bundles"
|
||||||
then
|
if [ ! -f ~/.vim/plugin/sessionman.vim ]
|
||||||
echo "Installing undo folder in ~/.vim/"
|
then
|
||||||
mkdir -p ~/.vim/undo/
|
echo "Installing sessionman in ~/.vim/plugin/"
|
||||||
fi
|
wget -O ~/.vim/plugin/sessionman.vim http://www.vim.org/scripts/download_script.php?src_id=15599
|
||||||
if [ -f ~/.vim/tmp/ ]
|
fi
|
||||||
then
|
if [ ! -d ~/.vim/bundle/vundle/ ]
|
||||||
echo "Installing tmp folder in ~/.vim/"
|
then
|
||||||
mkdir -p ~/.vim/tmp/
|
echo "Installing vundle"
|
||||||
fi
|
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
||||||
if [ ! -f ~/.vim/plugin/sessionman.vim ]
|
fi
|
||||||
then
|
vim +BundleInstall +qa
|
||||||
echo "Installing sessionman in ~/.vim/plugin/"
|
fi
|
||||||
wget -O ~/.vim/plugin/sessionman.vim http://www.vim.org/scripts/download_script.php?src_id=15599
|
if [ "$VALUE" = "s" ] ; then
|
||||||
fi
|
echo "Installing server applications:"
|
||||||
#Install vim bundles
|
echo $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
||||||
while getopts :b option
|
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
|
||||||
do
|
fi
|
||||||
case "$option" in
|
if [ "$VALUE" = "d" ] ; then
|
||||||
b)
|
echo "Installing desktop applications"
|
||||||
if [ -f ~/.vim/bundle/vundle/ ]
|
echo $(grep -vE "^\s*#" desktop | tr "\n" " ")
|
||||||
then
|
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
|
||||||
echo "Installing vundle"
|
fi
|
||||||
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
if [ "$VALUE" = "t" ] ; then
|
||||||
fi
|
echo "Syncing tmux"
|
||||||
vim +BundleInstall +qa
|
trash ~/.tmux.conf
|
||||||
;;
|
ln -s ${PWD}/tmux.conf ~/.tmux.conf
|
||||||
esac
|
fi
|
||||||
|
if [ "$VALUE" = "o" ] ; then
|
||||||
|
echo "Exiting because of -o flag"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo "Done syncing"
|
echo "Done syncing"
|
||||||
|
2
vimrc
2
vimrc
@ -151,7 +151,7 @@ let g:neocomplcache_force_overwrite_completefunc=1
|
|||||||
let g:neocomplcache_min_syntax_length = 2
|
let g:neocomplcache_min_syntax_length = 2
|
||||||
|
|
||||||
let g:php_refactor_command='php /usr/local/bin/refactor.phar'
|
let g:php_refactor_command='php /usr/local/bin/refactor.phar'
|
||||||
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
|
"inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
|
||||||
"let g:neocomplcache_enable_auto_select = 1
|
"let g:neocomplcache_enable_auto_select = 1
|
||||||
let loaded_matchit = 1
|
let loaded_matchit = 1
|
||||||
set nocompatible " be iMproved
|
set nocompatible " be iMproved
|
||||||
|
Loading…
Reference in New Issue
Block a user