Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
103 views

Colored multiline PS1 losing track of where the beginning of the command is [duplicate]

my .bashrc: export COLOR_RST=$(tput sgr0) export COLOR_WHI=$(tput setaf 15)$(tput bold) export COLOR_gra=$(tput setaf 7) export COLOR_GRA=$(tput setaf 8)$(tput bold) export COLOR_BLK=$(tput setaf 16)$(...
onlycparra's user avatar
0 votes
1 answer
756 views

Changing bash PS1 colors ruins bash command line [duplicate]

Hi I am using Fedora 37 and came across next problem. Adding export PS1="\e[43;39m[\t]\w\r\n[\u@\h]\\$\e[40m \[$(tput sgr0)\]" to my .bashrc file in /home/username in my case led up to this ...
GabrijelOkorn's user avatar
0 votes
2 answers
176 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` (...
AlonCo's user avatar
  • 3
0 votes
2 answers
177 views

Sending special bash characters to a custom function

I read this great article on customizing the bash prompt: http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/ I also read about using 256 colors in bash: http://www.logilab....
Big McLargeHuge's user avatar