:py import sys; print(sys.version_info)
$ python --version Python 2.6.6
$ uname -a
#!/bin/bash | |
echo "set up locale" | |
sudo locale-gen ja_JP.UTF-8 | |
echo "make bash pronpt shorter" | |
mv ~/.bashrc ~/.bashrc.dist | |
sed -e 's/\\u@\\h:\\w/\\u@\\h:\\W/g' ~/.bashrc.dist > ~/.bashrc | |
echo "dotfile install" | |
git clone https://github.com/lemonjp/dotfiles.git | |
sh -x ./dotfiles/setup.sh | |
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle |
#!/bin/bash | |
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql php5-sqlite php5-curl php5-intl php5-cli php-apc php5-xdebug acl git | |
## configuration apache for vagrant | |
# sudo sed -i 's#/var/www#/vagrant#g' /etc/apache2/sites-available/default | |
# sudo adduser www-data vagrant | |
## config php apache DEV |
[ | |
{"keys": ["ctrl+u"], "command": "scroll_lines", "args": {"amount": 20.0}, "context": [{ "key": "setting.command_mode" }]}, | |
{"keys": ["ctrl+d"], "command": "scroll_lines", "args": {"amount": -20.0}, "context": [{"key": "setting.command_mode"}]}, | |
{"keys": ["ctrl+e"], "command": "toggle_side_bar" }, | |
] |
yum install -y mercurial ncurses-devel | |
cd /usr/local/src | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd /usr/local/src/vim | |
hg update v7-4-020 | |
./configure --enable-multibyte --with-features=huge --disable-selinux --prefix=/usr/local | |
make |
# download latest libevent2 and tmux sources, and extract them somewhere | |
# (thx bluejedi for tip on latest tmux URL) | |
# | |
# at the time of writing: | |
# http://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz/download | |
# wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz | |
# | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel |
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`