You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

пре 3 година
12345678910111213
  1. xontrib load abbrevs coreutils
  2. $MULTILINE_PROMPT=''
  3. $PROMPT = lambda: '{user}@{hostname}:{cwd} {gitstatus: [{}]}{prompt_end} '
  4. $PROMPT_FIELDS['prompt_end'] = lambda: '{INTENSE_RED}@#' if $USER == "root" else '{GREEN}@'
  5. def prompt():
  6. p = ''
  7. if $USER != "root" or $USER != "toor":
  8. p = '{INTENSE_GREEN}{user}{WHITE}@{INTENSE_CYAN}{hostname}'
  9. else:
  10. p = '{INTENSE_RED}{hostname}'
  11. p += '{WHITE}:{INTENSE_YELLOW}{cwd} {DEFAULT}{gitstatus: [{}]}{prompt_end} '
  12. return p
  13. $PROMPT = prompt