The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

8
votes
8answers
4k views

Pushing my PS1 prompt over ssh

I use a specific PS1 prompt that I like. I share a few logins with other other people on a few different servers. I was wondering if there was a way to specify in my local bash profile a remote prompt ...
36
votes
4answers
9k 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 ...
8
votes
3answers
19k views

How to Run an app as Administrator without the prompt?

When I start SQL Server Management Studio 2008, I an error that's been around forever and is documented here. One of the suggestions to fix it that actually worked was to start SSMS with Run as ...
23
votes
3answers
6k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...
21
votes
3answers
13k views

OpenSSL without prompt

I am using following code to generate keys: apt-get -qq -y install openssl; mkdir -p /etc/apache2/ssl; openssl genrsa -des3 -out server.key 1024; openssl req -new -key server.key -out server.csr; cp ...
4
votes
1answer
1k views

Change hostname and prompt in OS X terminal

On a Mac the hostname and prompt is: workstation:~ thomas$ On Ubuntu Linux it would be: thomas@workstation:~$ How can I make the OS X prompt look like the Ubuntu one?
0
votes
1answer
72 views

What 016 017 in bash prompt, how can I make it correct in Terminal

I saw a beautiful bash prompt here PS1="\n\[\e[30;1m\]\[\016\]l\[\017\](\[\e[34;1m\]\u@\h\[\e[30;1m\])-(\[\e[34;1m\]\j\[\e[30;1m\])-(\[\e[34;1m\]\@ ...
4
votes
3answers
2k views

Get Function Into PS1 (Zsh)?

This works in Bash (parse_git_branch is a defined function) export PS1="\$(parse_git_branch)" but I cannot figure out the equivalent in zsh. Note: If I do PROMPT="$(parse_git_branch)" it seems ...
1
vote
1answer
125 views

What's the default value of %PROMPT% in Windows 7?

I changed the value of %PROMPT%, and now some things aren't working. What's its default value?
0
votes
1answer
605 views

How do I modify an environment variable with special characters?

My prompt is set to $P$_CMD> (with a space at the end). This works great. However, virtualenv's activate.bat has the following line: set PROMPT=(approot) %PROMPT% When I run that command, cmd ...