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 :).

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.

VN:F [1.9.22_1171]
Rating: 4.5/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Amuse - ZSH Theme, 4.5 out of 5 based on 2 ratings

13 Comments

 Add your comment
  1. Awesoem bhai

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. I notice you have some interesting segments at the bottom of your terminal. Can you share how to set it up, please?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. 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?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  4. What font are you using? can you post a link?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  5. How do I get all those Tmux Powerline segments down there? Can you post your .tmux.conf?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

Leave a Reply