Skip to content

Instantly share code, notes, and snippets.

@jhermann
Last active August 2, 2018 17:56
Show Gist options
  • Save jhermann/18b8eb17b6548d8b2d34 to your computer and use it in GitHub Desktop.
Save jhermann/18b8eb17b6548d8b2d34 to your computer and use it in GitHub Desktop.
Babun install

Babun Setup for Python Developers

Babun is “A Windows shell you will love!”

It's a turn-key CygWin distribution for developers and is very easy to install and maintain. For a Python developer, Babun allows working in an almost-POSIX environment – with some limitation, of course. This causes less friction when handling FOSS projects that are often biased towards a standard Linux environment, e.g. by using shell scripts for boot-strapping and things like that.

  • Download the installer ZIP archive from the Babun homepage.

  • Unzip it (e.g. using Windows Explorer).

  • Double-click the installer (install.bat), and wait…

  • Catch up (babun update).

  • Change the default shell from zsh to bash if you're used to it (babun shell /bin/bash).

  • Edit ~/.bashrc to activate loading of ~/.bash_aliases.

  • Install additional Python essentials:

    pact install python-setuptools python-ming
    pact install libxml2-devel libxslt-devel libyaml-devel
    curl -skS https://bootstrap.pypa.io/get-pip.py | python
    pip install virtualenv
    curl -skS https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python
    
  • Enjoy!

@jhermann
Copy link
Author

jhermann commented May 6, 2015

Babun PS1:

\[\033[00;34m\]{ \[\033[01;34m\]\W \[\033[00;34m\]}\[\033[01;32m\] $( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo ) \[\033[01;31m\]» \[\033[00m\]

@dariushazimi
Copy link

How can I install python 3 on babun?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment