Tagged Questions
1
vote
1answer
69 views
bash prompt - long command circle back to same line after adding color
Note: I am using Putty and my TERM is set to XTERM.
I have added the color to my bash prompt as
PS1="\[\033[0;32m\]\d \t \u\e[1;33m@\H /\W $ \[\033[1;37m\]"
just to simplify PS1 in English -
...
2
votes
1answer
160 views
Coloring shell command and output differrently [duplicate]
Possible Duplicate:
Customizing bash shell: Bold/color the command
bash $ cat what-i-want
"I want the output be in a different color."
I'd like my commands stand out among the output, ...
1
vote
1answer
262 views
Colors not rendered correctly in oh-my-zsh themes
I'm trying to use colors in oh-my-zsh themes. It works fine on my home computer (ubuntu), but in a work computer (Scientific Linux i.e. Enterprise linux) the prompt colors are actually spelled out. ...
2
votes
2answers
859 views
Colored Prompt in KornShell
According to this StackOverflow post, it is possible have a colored prompt in KornShell. I have not been able to figure out how to do this. I am able to use color:
echo -e "\033[34mLinux\033[00m"
...
4
votes
3answers
479 views
Colored text set up with PS1 and colored output from commands mess each other up
I have PS1 that ends with an opening color sequence (like \[\e[0;32m\]) to have all text in the terminal colored (green in this case). However, when I use a command such as ls (which is aliased to ls ...
2
votes
5answers
2k views
In bash how can I change the color of my command prompt? [duplicate]
Possible Duplicate:
How to customize .bashrc to configure command prompt?
When I run a command, I often times have trouble finding the beginning of the command output. An easy fix to this ...
7
votes
3answers
382 views
Can I highlight the current prompt line in zsh?
Is it possible to highlight (set a background colour) for the whole line of the prompt in zsh? In my emacs config I have the line on which the cursor sits a slightly different colour to the window ...
5
votes
3answers
939 views
Change the PS1 color based on the background color?
I learned that I can change the format of PS1, especially the color of the string. Then, is it possible to change the color based on the background color of the shell? Or, how can I detect the ...
3
votes
2answers
2k views
change prompt color depending on user or root in zsh
in zsh you can have a %# in your PS1 (or whatever PROMPT variable) which basically means display % if user or display # if root. I'm wondering if there is any way to affect this so that the % or # ...
38
votes
8answers
25k views
Colorizing your terminal and shell environment?
I spend most of my time working in Unix environments and using Terminal emulators. I try to use color on the command-line, because color makes the output more useful and intuitive.
What are some good ...