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.

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415
  1. # title
  2. $PROMPT_FIELDS['title_prompt_end'] = lambda: '#@' if $USER == "root" else '@'
  3. $PROMPT_FIELDS['title'] = lambda: '' if 'XDG_SESSION_TYPE' in ${...} && $XDG_SESSION_TYPE=='x11' \
  4. else $USER+'@'+$HOSTNAME+':'
  5. $TITLE = '{title}{cwd} {title_prompt_end} {current_job}'
  6. # prompt
  7. $PROMPT_FIELDS['prompt_end'] = lambda: '{RED}#@' if $USER == "root" else '{GREEN}@'
  8. $PROMPT = lambda: ('' if 'XDG_SESSION_TYPE' in ${...} && $XDG_SESSION_TYPE=='x11' \
  9. else ('{GREEN}{user}{WHITE}@{BOLD_WHITE}' if $USER != "root" and $USER != "toor" \
  10. else '{BOLD_RED}')+'{hostname}{WHITE}:')+'{BOLD_BLUE}{cwd}{DEFAULT}{gitstatus: [{}]} {prompt_end} '
  11. # multiline prompt
  12. $MULTILINE_PROMPT=''