From d48d86dde42febebec02759a8217df7dce278ef0 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 17 May 2022 12:21:18 -0700 Subject: [PATCH] Move around xonsh prompt settings --- TODO.org | 2 +- xonsh/prompt.xsh | 4 ++++ xonsh/rc.xsh | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO.org b/TODO.org index d12941d..150e44c 100644 --- a/TODO.org +++ b/TODO.org @@ -29,7 +29,7 @@ ctrl+shift+arrows ** Nix tips https://xon.sh/xonshrc.html#use-the-nix-package-manager-with-xonsh ** Aliases to auto-deploy templates for python/nix direnv -** Fix ls colors +** Fix ctrl-w in vi-mode * Nix ** Separate home.nix into many files ** Add NixGL to home.nix on non-NixOS Linux systems diff --git a/xonsh/prompt.xsh b/xonsh/prompt.xsh index 2613713..c91b688 100644 --- a/xonsh/prompt.xsh +++ b/xonsh/prompt.xsh @@ -25,3 +25,7 @@ else: # } # register_custom_style("ttm-style", ttm_style) $XONSH_COLOR_STYLE = "native" +$MULTILINE_PROMPT = " " +$UPDATE_PROMPT_ON_KEYPRESS = True +$PROMPT_REFRESH_INTERVAL = 0.25 +# $VI_MODE=True diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index d1da5dd..bb68c0a 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -14,8 +14,6 @@ $UPDATE_OS_ENVIRON = False $XONSH_SHOW_TRACEBACK = False $XONSH_HISTORY_BACKEND = "sqlite" $HISTCONTROL = "ignoredups" -$MULTILINE_PROMPT = " " -$UPDATE_PROMPT_ON_KEYPRESS = False $XONSH_COPY_ON_DELETE = True $AUTO_CD = True