b
This commit is contained in:
parent
a5f2da1890
commit
56562e07e5
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ in
|
|||
programs.fish.enable = true; # for completions
|
||||
home.file.".xonshrc".text = ''
|
||||
$PROMPT_FIELDS['rootuser'] = lambda: "{RED}{user}{RESET}" if $USER == "root" else None
|
||||
$PROMPT_FIELDS['sshhostname'] = lambda: "{user}@{hostname}" if "SSH_TTY" in ''${...} else $PROMPT_FIELDS['rootuser']()
|
||||
$PROMPT_FIELDS['sshhostname'] = lambda: f"{$PROMPT_FIELDS['user']()}@{$PROMPT_FIELDS['hostname']()}" if "SSH_TTY" in ''${...} else $PROMPT_FIELDS['rootuser']()
|
||||
$PROMPT = '{gitstatus:{RESET}[{}{RESET}] }{sshhostname:{} }{BOLD_GREEN}{short_cwd}{RED}{last_return_code_if_nonzero: [{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{RESET}> '
|
||||
$VI_MODE = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue