#!/bin/sh
cd $homeSys
mkdir bin
mkdir code
mkdir lib
mkdir include
mkdir lib64
mkdir src
mkdir share
mkdir packages
mkdir ./local
mkdir ./modules

#tmux
cd packages/
git clone https://github.com/libevent/libevent.git
cd libevent/
sh autogen.sh
./configure --prefix=$homeSys
make
make install
cd ../

mkdir ncurses
wget ftp://ftp.invisible-island.net/ncurses/ncurses.tar.gz
tar -xvzf ncurses.tar.gz -C ncurses --strip-components=1
cd ncurses
./configure --prefix=$homeSys
make
make install
cd ../

git clone https://github.com/tmux/tmux.git
cd tmux/
sh autogen.sh
./configure --prefix=$homeSys
make
make install

#vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
