dotfiles

shared miscellaneous configuration files between my systems
git clone git://git.eonn.xyz/dotfiles.git
Log | Files | Refs

commit c0e48cd6473908d73437b568eb39ba863e74894c
parent 1dc503d604a6caf687409932b7ffbca223a16eaf
Author: iressa <ian@eonn.xyz>
Date:   Mon, 24 Jan 2022 10:40:02 -0500

escapes in PS1 that don't clobber length

Diffstat:
M.bashrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -15,9 +15,9 @@ fi if [ -n "$GUIX_ENVIRONMENT" ] then - PS1='\e[1;32m\]\u@\h\e[0m\] (\e[0;36m\]\W\e[0m\])[\t] [env]\$ ' + PS1='\[\033[1;32m\]\u@\h\[\033[0m\] (\[\033[0;36m\]\W\[\033[0m\])[\t] [env]\$ ' else - PS1='\e[1;32m\]\u@\h\e[0m\] (\e[0;36m\]\W\e[0m\])[\t] \$ ' + PS1='\[\033[1;32m\]\u@\h\[\033[0m\] (\[\033[0;36m\]\W\[\033[0m\])[\t] \$ ' fi alias emacs="emacs -nw"