From bf1687b7be2732f49ec9d074b1ecbbc6088c882a Mon Sep 17 00:00:00 2001 From: buffet Date: Fri, 24 Mar 2023 12:32:02 +0100 Subject: [PATCH] feat(bash): use 6 space indent prompt for now --- programs/bash.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/programs/bash.nix b/programs/bash.nix index c2e36fd..d78ac15 100644 --- a/programs/bash.nix +++ b/programs/bash.nix @@ -30,13 +30,7 @@ in { ]; initExtra = '' - __prompt() { - case $? in - 0) PS1='\[\e[34m\]; \[\e[0m\]' ;; - *) PS1='\[\e[31m\]; \[\e[0m\]' ;; - esac - } - PROMPT_COMMAND="__prompt" + PS1=' ' bind '"\C-o": "\C-a\C-k fg; if [[ $? == 1 ]]; then nvim; fi\n"' bind '"\e\C-m": "\C-e | nvim\C-m"'