• Reset your password
Home
OO PHP, Drupal, Symfony Developer and Architect
Tim Rabbetts

Main navigation

  • Home
  • Blog
  • Log in

Add the commit hash to zsh and oh-my-zsh on Ubuntu linux

Breadcrumb

  • Home
  • blog
  • add the commit hash to zsh and oh my zsh on ubuntu linux
  • Add the commit hash to zsh and oh-my-zsh on Ubuntu linux
Tim
Rabbetts
By zarexogre | Thu, 02/04/2020
server, cloud, development
zsh

If you haven't heard of it zsh is a bash alternative and oh-my-zsh is an awesome set of customizations.  Now using just agnoster with powerline fonts you can get this result at the terminal which is great!

zsh on command line

See here for example: https://github.com/agnoster/agnoster-zsh-theme

Now what I wanted was to also show the commit hash, so I needed to edit the theme file for agnoster, and here is the result.

ZSH with hash commit