====== Settinng up python for tab-completion and history ====== Setting up python so that pressing TAB autocompletes words, and so that after restarting python, one can use ↑ to access old entries. You can just paste the whole block below into a shell. # This script will try not to make changes twice, so it # should be safe to run it more than once. # turn colors on git git config --global color.ui auto # add ssh shortcut for multicore exercises if ! grep -q sgi1 ~/.ssh/config &>/dev/null; then (umask 0077; mkdir -p ~/.ssh cat >>~/.ssh/config </dev/null; then cat >~/.pythonrc </dev/null; then cat >>~/.bashrc <<"EOF" export PYTHONSTARTUP=$HOME/.pythonrc HISTFILESIZE=100000 HISTSIZE=100000 PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]\[\033[01;35m\]$(__git_ps1 " (% s)")\[\033[00m\]$ ' # beginners aliases alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' EOF fi # restart bash exec bash # we are missing one package sudo apt-get install -y python-coverage gitk