Browse Source

termux term prompt: hide user@hostname

Fabian Peter Hammerle 5 years ago
parent
commit
97d55bd957
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rc.xsh

+ 1 - 1
rc.xsh

@@ -37,7 +37,7 @@ $DYNAMIC_CWD_WIDTH = '30%'
 $DYNAMIC_CWD_ELISION_CHAR = '…'
 $PROMPT = ''.join([
     '{RED}{last_exit_status:[{}] }',
-    '{BOLD_GREEN}{user}@{hostname} ',
+    '{BOLD_GREEN}{user}@{hostname} ' if not TERMUX or 'SSH_CLIENT' in ${...} else '',
     '{YELLOW}{cwd} ',
     '{{BLUE}}{} '.format('{prompt_end}' * $SHLVL),
     '{NO_COLOR}',