Skip to content

Instantly share code, notes, and snippets.

@hornos
Created June 26, 2013 19:32
Show Gist options
  • Select an option

  • Save hornos/5870782 to your computer and use it in GitHub Desktop.

Select an option

Save hornos/5870782 to your computer and use it in GitHub Desktop.
ansible prompt
if (( notime > 0 )) ; then
PS1="$(ps1_titlebar)$(ps1_identity)$(ps1_git)$(ps1_rvm)${separator}${prompt_char}${ps1_prefix} "
else
PS1="$(ps1_titlebar)\D{%H:%M:%S} $(ps1_identity)$(ps1_git)$(ps1_rvm)${separator}${prompt_char}${ps1_prefix}$(ps1_ansible) "
fi
}
ps1_ansible() {
if test -n "${ANSIBLE_HOSTS}"; then
echo ":${ANSIBLE_HOSTS}"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment