Amuse – ZSH Theme

Amuse is a simplistic theme I built for the popular shell ZSH that I use.

Features :

  1. Shows git prompt with additional support for dirty (! in red) and untracked (? in green) flags.
  2. Shows the system time with a neat time unicode character. Although I am sure most wouldn’t find having time on the prompt useful, I find it very useful since it helps me get a good idea on how long a command took to execute or even how long back I executed some command. Check the screenshot for reference.
  3. Prompt where you type the command starts after a $ on a new line giving you ample space (full width barring the $ and a space) to type your command and so the prompt (especially if it’s long, eg. if you are in some deep nested directory) does not interfere with your commands and avoids wrapping for the most part unless you are typing an excessively long command in which case you should probably use an editor (VIM) to edit it with <C-X><C-E>.
  4. Shows you the current ruby version in use from rvm, using the ‘rvm current’ command in the right prompt. The ZSH right prompt is really cool and since I use rvm with several ruby versions which change with different projects .rvmrc files, the right prompt helps me to know the ruby context at all times. It shows the full ruby version along with the gemset name in use. The nice thing about the right prompt in ZSH is that it hides automatically if you happen to type a command that’s long enough to reach it :).

UPDATE: My AMUSE theme for oh-my-zsh was merged into the repository so you don’t need my fork anymore which has since been deleted.

I have pushed my theme into my fork of oh-my-zsh here – amuse.zsh-theme. But I am going to paste it’s code here to showcase how small & simple the code is. I would recommend you to use the git repository to make sure you have the latest.

Screenshot :
Amuse - ZSH Theme

Hope you like it as much as I do.

21 thoughts on “Amuse – ZSH Theme

  1. Tran Thien Thanh

    I notice you have some interesting segments at the bottom of your terminal. Can you share how to set it up, please?

  2. Varemenos

    In Fedora in every terminal I’ve tried the icon for the git branch is replaced a square with some letters in it instead of the actual icon. Do you know of a way to fix that?

    1. dhruvasagar Post author

      Make sure your terminal supports unicode characters & that the font you’re using does so as well.

  3. Benjamin

    Hello sir, thank you for making such a great theme. I am really enjoying it and it helps makes my command line daily routine so much easier.

    I am wondering if there is anyway to hide the current RVM prompt? I am not a Ruby developer and this intel is not really helpful.

    THank you!

  4. Pingback: Pristine - ZSH Theme - Thought Provoking

  5. Pingback: Quickies: a simple zsh theme | 0ddn1x: tricks with *nix

    1. dhruvasagar Post author

      In the screenshot above, I am actually using Guake terminal with transparency and what you see is the ubuntu default wallpaper behind. I usually toggle the transparency on / off depending on whether or not I am coding.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.