#118 – Installing a proper shell on debian and Windows

Hi, today a really quick article since I’m totally drowning in E3 announcement, trying to follow the Smash Invitational and so on. Anyway, I’ll talk about installing a proper terminal on windows and linux.

 

Choice

For Windows and Linux, we’ll use zsh coupled with “oh-my-zsh” with is a customized version of zsh adding themes and plugins to the shell. You’ll be able to have things such as information when you’re inside a git repository for example. There are a few plugins, so don’t hesitate to take a look.

 

Linux

On linux, the procedure is pretty manual:

  • Install terminator (you can use iTerm on OSX or use the default terminal), terminator has some advantages such as multi-window management.
  • Install zsh using apt-get
  • Download “oh-my-zsh” by launching this script with sh

Install the powerline fonts

cd
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.fonts/
mkdir -p .config/fontconfig/conf.d
fc-cache -vf ~/.fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
  • Change your theme if you want inside ~/.zshrc, I use “agnoster” personally
ZSH_THEME="agnoster"
  • Install dconf-cli using apt-get, this is used to install directory colors
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh
  • Once installed add this line to your zshrc
eval `dircolors ~/.dir_colors/dircolors`
  • You can change your default shell using “chsh -s /bin/zsh”

There you go, you know have a nice shell with colors and everything :).

 

Windows

On Windows it is a little bit more straightforward, I personally use Babun, which includes cygwin so you’ll be able to launch linux commands, and it includes oh-my-zsh automatically.

You might have some issues launching python with Babun since it will install its own version of python (callable with “python”), if you want to use your Windows version, use “python.exe -i”.

Leave a Reply

Your email address will not be published.