Skip to content

Instantly share code, notes, and snippets.

View dm1try's full-sized avatar

Dmitry Dedov dm1try

View GitHub Profile
@dm1try
dm1try / my.zsh-theme
Created January 9, 2016 03:55
custom theme for my oh-my-zsh. It displays `elixir`/`ruby` version in the prompt(dependent on current dir); requirements `rvm` for `ruby`, `kiex` for `elixir`
function elixir_version() {
if [ -f "$PWD/mix.exs" ]; then
echo "$ELIXIR_VERSION "
fi
}
function ruby_version() {
if [ -f "$PWD/Gemfile" ]; then
echo "${RUBY_VERSION#*-} "
fi