Advertisement
Guest User

Untitled

a guest
May 28th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. If you used "Nebhiros" theme, you know it shows Ruby Version in a quite conveniant way, here is the same for Agoster.
  2.  
  3. The file is located at ~/.oh-my-zsh/themes/agnoster.zsh-theme
  4.  
  5. example:
  6. sudo subl ~/.oh-my-zsh/themes/agnoster.zsh-theme
  7.  
  8.  
  9. Script:
  10.  
  11. prompt_rubyver() {
  12. if [[ -n "$RUBY_VERSION" ]]; then
  13. RUBY_VER=`echo $RUBY_VERSION | cut -d'-' -f2`
  14. prompt_segment red white "rvm:("$RUBY_VER")"
  15. fi
  16. }
  17.  
  18.  
  19. Add to your prompt:
  20.  
  21. prompt_rubyver
  22.  
  23. And now Agnoster is complete, GO! go and use it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement