25개 이상의 토픽을 선택하실 수 없습니다. 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