This commit is contained in:
Lucy Hochkamp 2024-03-17 09:52:35 +01:00
parent 56562e07e5
commit 443f53cf8f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -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: f"{$PROMPT_FIELDS['user']()}@{$PROMPT_FIELDS['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

View file

@ -189,6 +189,7 @@ in
home-manager.users.ragon = { pkgs, lib, inputs, config, ...}: {
imports = [
../../hm-modules/nvim
../../hm-modules/zsh
../../hm-modules/tmux
../../hm-modules/xonsh
../../hm-modules/cli.nix