Last active
October 8, 2015 15:58
-
-
Save lrhache/ac13ef6eaa30aceb10ba to your computer and use it in GitHub Desktop.
Install a new working environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 | |
# if running bash | |
if [ -n "$BASH_VERSION" ]; then | |
# include .bashrc if it exists | |
if [ -f "$HOME/.bashrc" ]; then | |
. "$HOME/.bashrc" | |
fi | |
fi | |
# set PATH so it includes user's private bin if it exists | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
### END OF DEFAULT FILE ### | |
# remove history after logout | |
unset HISTFILE | |
alias mkenv="mkvirtualenv" | |
alias tmux='/usr/local/bin/tmux -2' | |
export WORKON_HOME=$HOME/.env | |
export PROJECT_HOME=$HOME/devel | |
source /usr/local/bin/virtualenvwrapper.sh | |
function wo(){ | |
cd $PROJECT_HOME/$1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install git | |
git config --global user.name "Louis-Rene Hache" | |
git config --global user.email "" | |
git config --global color.ui auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ssh-keygen -t rsa -C "" | |
git clone https://github.com/lrhache/vim.git ~/.vim | |
ln -s ~/.vim/.vimrc ~/.vimrc | |
ln -s ~/.vim/.tmux.conf ~/.tmux.conf | |
mkdir ~/installs | |
sudo apt-get install libevent-dev libncurses5-dev \ | |
libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | |
libcurl4-openssl-dev libarchive-dev\ | |
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev | |
cd ~/installs | |
wget http://hivelocity.dl.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz | |
tar xvf tmux-1.9a.tar.gz | |
cd tmux-1.9a/ | |
./configure | |
make && sudo make install | |
cd ~/installs | |
wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz | |
tar xvf cmake-2.8.11.tar.gz | |
cd cmake-2.8.11 | |
./bootstrap --prefix=/usr --system-libs --mandir=/share/man --docdir=/share/doc/cmake-2.8.11 | |
make | |
sudo make install | |
sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common | |
cd ~/installs | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-perlinterp \ | |
--enable-luainterp \ | |
--enable-gui=gtk2 --enable-cscope --prefix=/usr | |
make VIMRUNTIMEDIR=/usr/share/vim/vim74 | |
sudo make install | |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1 | |
sudo update-alternatives --set vi /usr/bin/vim | |
cd ~/.vim | |
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
vim -c ':execute ExecuteInstall()' | |
cd ~/.vim/bundle/YouCompleteMe | |
./install.sh --clang-completer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/installs/ | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo pip install pep8 virtualenvwrapper | |
echo 'export WORKON_HOME=~/.env' >> ~/.bash_profile | |
echo 'export PROJECT_HOME=~/devel/' >> ~/.bash_profile | |
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bash_profile | |
. ~/.bash_profile | |
mkdir -p $WORKON_HOME $PROJECT_HOME | |
echo 'proj_name=$(basename $VIRTUAL_ENV)' >> $WORKON_HOME/postactivate | |
echo 'cd $PROJECT_HOME/$proj_name' >> $WORKON_HOME/postactivate | |
echo 'proj_name=$(basename $VIRTUAL_ENV)' >> $WORKON_HOME/postmkvirtualenv | |
echo 'mkdir $PROJECT_HOME/$proj_name' >> $WORKON_HOME/postmkvirtualenv | |
echo 'add2virtualenv $PROJECT_HOME/$proj_name' >> $WORKON_HOME/postmkvirtualenv | |
echo 'cd $PROJECT_HOME/$proj_name' >> $WORKON_HOME/postmkvirtualenv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment