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.
|
- xontrib load abbrevs coreutils
- $MULTILINE_PROMPT=''
- $PROMPT = lambda: '{user}@{hostname}:{cwd} {gitstatus: [{}]}{prompt_end} '
- $PROMPT_FIELDS['prompt_end'] = lambda: '{INTENSE_RED}@#' if $USER == "root" else '{GREEN}@'
- def prompt():
- p = ''
- if $USER != "root" or $USER != "toor":
- p = '{INTENSE_GREEN}{user}{WHITE}@{INTENSE_CYAN}{hostname}'
- else:
- p = '{INTENSE_RED}{hostname}'
- p += '{WHITE}:{INTENSE_YELLOW}{cwd} {DEFAULT}{gitstatus: [{}]}{prompt_end} '
- return p
- $PROMPT = prompt
|