Selaa lähdekoodia

fix $PS1 to avoid eating the input before the LF

Douglas A 3 vuotta sitten
vanhempi
commit
36aa1ad1b9
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      bash/ps1

+ 7 - 1
bash/ps1

@@ -22,4 +22,10 @@ PROMPT_COMMAND=parse_git_branch
 PS_INFO="$GREEN\u@\h$RESET:$BLUE\w"
 PS_GIT="$YELLOW\$PS_BRANCH"
 PS_TIME="\[\033[\$((COLUMNS-10))G\] $RED[\t]"
-export PS1="\${PS_FILL}\[\033[0G\]${PS_INFO} ${PS_GIT}\n${RESET}\$ "
+
+
+export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
+#export PS1="\${PS_FILL}\[\033[0G\]${PS_INFO} ${PS_GIT}${RESET}$ "
+#export PS1="\${PS_FILL}\[\033[0G\]${PS_INFO} ${PS_GIT}\n${RESET}\$ "
+
+