2
votes
2answers
570 views

How to change the prompt of mc's subshell

I often use the subshell of mc. So I want the promt of mc-subsell to be different form the primary shell. Say, how can I change the sub-prompt like this: mc:$Current_dir$ many thanks
12
votes
3answers
3k views

Making Linux shell prompt show last return value

I'm currently on a Linux machine and the shell prompt is showing me the last return value and number of executed commands (picture included, with these numbers shown in purple). My own computer ...
2
votes
2answers
786 views

Determine/resolve filepath/alias of a certain command in the Windows command prompt

How can I find out to which filepath (or alias) a certain command input will point to, in the Windows command prompt? Specifically Windows XP, info on other versions also appreciated! On Unix systems ...
4
votes
1answer
102 views

Force prompt on specific directories

Is there a way to change the prompt on a different directories on the same machine? For example, I want a simple prompt "[\W] \$" in development directories. Ideas?
7
votes
3answers
4k views

Lightning bolt for prompt (PS1)

I've seen on a few screencasts a while back where someone had a lightning bolt instead of $ on the bash prompt. Does anyone know how to do this?
1
vote
2answers
451 views

How to highlight current folder in Bash prompt?

I'd like to use the \w variable in .bashrc, but I want the prompt to highlight the current end-directory. Something like this: /usr/local/<strong>bin</strong> How can I do that?
37
votes
4answers
10k views

What is the origin of the UNIX $ (dollar) prompt?

The UNIX prompt uses a $ symbol to indicate that your input is expected. I was wondering why this symbol was chosen -- if there is a reason. Dollar just seems a little unexpected. A > would have been ...