The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

0
votes
2answers
214 views

rename command windows to rename *.a.b to *.b [duplicate]

Possible Duplicate: windows rename command to rename file.a.b to file.b I have a few folders with hundreds of html files. The file name should have been .htm but it is .asp.htm and it does ...
1
vote
3answers
89 views

Is it possible to have environment variables in the path of the working directory : PS1?

I am on Lubuntu and I am using bash. My PS1 (in .bashrc) is : PS1="\w> " I like it because I need to paste the working directory all the time. The problem is that the path is always very long ...
1
vote
1answer
132 views

How can I have the return string of a program appear in my tcsh prompt?

I am using vcprompt to provide me with the git branch and dirtiness status. It returns it as a string. How can I catch this string in my tcsh prompt setting? I guess I need to put the call to ...
2
votes
1answer
399 views

How do you assign a shortcut key to Command Prompts so that it can open multiple windows?

On every Windows machine that I've ever owned (or used at work), I've assigned a Shortcut key to open a Command Prompt window on entering the shortcut key. If you enter this shortcut key several ...
3
votes
1answer
250 views

Why my Network Connection Properties don't show UAC prompt & settings change everytime I connect?

I can't set my network connection interface properties, UAC prompt doesn't appear anymore for only this adapter interface. I disable Netbios but each time I connect it changes back to default. Earlier ...
1
vote
1answer
104 views

NAS Drive Not Correctly Reporting Files, Directories from a DOS/Command prompt in WIN7

I have an NAS drive on my network, and it works just fine. I can access every file on it with WIN7. However, when I go to a command prompt and perform a directory command, the command reports 0 ...
1
vote
1answer
722 views

How do I change the blinking underline cursor (_) color in Command Prompt?

If I change the screen text color to red, the blinking underline cursor (_) stays white.
5
votes
1answer
633 views

Right and fast way to test git directory and git branch?

While trying to set up my new fish shell prompt, I ended up testing ways to get the branch name and also testing if I was on a git repository. I have found (1) git rev-parse --abbrev-ref HEAD, (2) git ...
1
vote
1answer
82 views

Custom prompt doesn't work on Mac's terminal

I like to use a custom prompt (current path in blue) on my unix machine: export PS1='\[\e[0;34m\]\w \$\[\e[m\] ' But when I try to use it on Mac's terminal it doesn't work: it fails to detect the ...
2
votes
2answers
229 views

Custom prompt doesn't work on Mac Terminal

I like to use a custom prompt (current path in blue) on my unix machine: export PS1='\[\e[0;34m\]\w \$\[\e[m\] ' But when I try to use it on Mac's terminal it doesn't work: it fails to detect the ...
2
votes
1answer
282 views

Prevent zsh from setting the current prompt to the name of the variable that points to this path

This is related to Zsh: Open a new tab in the same directory. I have installed oh-my-zsh recently and it certainly kicks. I have some custom variables, like $WORKSPACE which I use to get around ...
1
vote
0answers
328 views

Downloading a file from multiple FTP's via excel/command prompt

I have a huge list of ip's which point to a text file I need to download. There is about 500 text files and the text filename is the same, data.txt. My initial thought was to use a macro to get the ...
0
votes
0answers
82 views

Why is a “-1” appearing on right side of my zsh Terminal prompt?

Screenshot here I recently switched over from bash to zsh for my Terminal shell, however after using it for about a week this "-1" started appearing on the right hand side of my window. It get's ...
2
votes
0answers
185 views

Mac Screen Sharing - see screen, but no login prompt

In the past I have been able to connect via screensharing (finder/go to server vnc://IP) to my i-Mac at work from my mac-mini just fine. However, when I tried today, I wasn't able to see the login ...
2
votes
2answers
2k views

Fixedsys as Command Prompt font (Fallout theme)

I'm trying to configure my Command Prompt to look like the terminals from Fallout 3. I managed to extract the colour values from the included image, which I am very happy with. (If anyone wants to ...
6
votes
4answers
4k views

How to prevent password popup everytime for changing network configuration in OS X Mountain Lion?

I have a few network scripts that I used under OS X Lion that automatically created a ssh connection and then changed network configuration on my local machine to run traffic through the ssh tunnel. ...
0
votes
1answer
75 views

Prompt Customization Query - PS1='[\u@\h]\!:echo $? $ '

If in .bashrc the following reports the 'history number of the current command' (and the exit code of the last command), how can I configure it to report the 'history number of the previous command'? ...
0
votes
3answers
2k views

How to change the PS1 value.

I am logged in as the root of a Linux 2.6.18 machine. I changed the value of PS1 as: export PS1="$PWD> " It works and hardcodes the command prompt as the home directory followed by a >. Now ...
4
votes
1answer
965 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
3answers
456 views

Mac OSX Terminal different colors

Is there a way for the command line and the output to be in different colors? For example, I've been playing with the PS1 value so my prompt is in red, but I'd like to have the command line in green ...
2
votes
1answer
648 views

colorized bash prompt overwrites previous command's output if the output doesn't end with a newline

On my system, when using a colorized prompt, the last line of the previous command's output gets overwritten if the last character of the output isn't a newline. Ex: Using the default, non-colored ...
1
vote
1answer
4k views

How do I enable my network connection using command prompt?

How do I enable my network connection using command prompt? I've tried: netsh interface set interface "Local Area Connection" ENABLE But received this error: An interface with this name is not ...
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
593 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 ...
0
votes
2answers
69 views

Who to Telnet to access only a prompt? [closed]

Is there any host where I can just telnet them and access a prompt? I'm not looking to hack – just wondering if I needed to. Let me rephase my question anyone who has an old computer and just lets ...
1
vote
1answer
406 views

Make Bash's PS1 show original directory name and not symlink?

I currently have PS1='\W' but when in a symbolic link'd directory, the prompt shows the symlink name, how can I make PS1 to show the original directory name?
-1
votes
2answers
785 views

Why does the elevated command prompt end with a “>” (greater than) instead of “\” (backslash)?

When I open an elevated command prompt I am greeted with a strange first line. Instead of the normal: C:\WINDOWS\system32\ I am greeted with C:\WINDOWS\system32> This leaves me with ...
1
vote
1answer
253 views

dh_make to build debian package need to manually hit <Enter> issue

when I run dh_make --native I get the following prompt: Hit <Enter> to confirm How do I escape this manual action?
6
votes
3answers
2k views

Why doesn't “cd D:” change the command context to D:? [duplicate]

Possible Duplicate: Using cd Command in Windows Command Line, Can't Navigate to D:\ Every time I want to change directory context to another drive (D, E, F, or whatever..) on a Windows ...
0
votes
1answer
412 views

Outlook 2007 to prompt to save or delete sent item when SEND is clicked

In outlook 2007, I would like to be prompted to Save or Delete the message after I click on Send button. How do I do this?
2
votes
1answer
2k views

Command prompt hangs/freezes/crashes sporadically

I'm finding it very difficult to Google this, I don't seem to be able to find anyone with the same issue and I don't know enough about the Windows operating system to troubleshoot. The machine(s) we ...
0
votes
2answers
689 views

Changing the prompt in telnet

With some help from people on here, I was able to set a custom prompt in an ssh session (thanks!). Now I need to do the same in telnet, but I'm not sure of what syntax I could use for that. ...
0
votes
2answers
412 views

Changing the prompt when ssh to another box

I want to be able to set a custom prompt (to help with automating jobs, the prompt should be something I can reliably detect). I found I am able to set the prompt remotely, like this: ...
14
votes
4answers
2k views

MySQL command line color prompt

I want to add colors to the MySQL command line color prompt. I have so far in a script (database.sh): mysql -uroot -hlocalhost -A --prompt="\u@\h:\d> " I would like root to be red, @ to be ...
12
votes
5answers
2k views

Which directory does path `//` represent in Linux?

When I want to go back to upper level directory in Linux by typing cd .., I typo-ed cd //. To my great surprise, no errors are reported. What's more the prompt becomes username@hostname://$. ls ...
1
vote
2answers
346 views

How can I limit the number of directories in my prompt?

On my Mac OS X 10.6, I have my prompt set to PS1='\[\033[01;32m\][\w\[\033[00m\]\[\033[01;34m\]$(__git_ps1 " (%s)")\033[01;32m\]]\[\033[00m\]\$ ' How can I limit the number of directories in my ...
5
votes
2answers
1k views

Get current window number for bash prompt

I want to replace status bar with bash prompt displaying window number like ①. How can I get current window number in the shell? There's TMUX_PANE env variable, unfortunately no TMUX_WINDOW. The ...
7
votes
1answer
3k views

How can I put a newline in my zsh prompt without causing terminal redraw issues?

I'm trying to fix a minor (but annoying) issue with my zsh prompt. The problem I'm seeing is that when I'm using a terminal in a GUI OS environment (for example, Terminal.app or iTerm 2 on OS X ...
4
votes
1answer
277 views

Why does this bash prompt sometimes keep part of previous commands when scrolling history?

My bash prompt, which I'll admit to have stolen from a few places and cobbled together, will sometimes add part of previous commands to its length when scrolling the bash history with up/down arrows. ...
2
votes
1answer
5k views

modify login prompt or header (/etc/issue) to display ip address of the machine

I work with a lot of virtual machines. For testing and preproduction set up. I would like the login promt or header to display the ip address of the machine. That way when I start it up I can see ...
0
votes
1answer
306 views

How can I remove new line character in prompt?

As you can see in the screenshot, I have an unneeded newline character in my prompt. Anyone know how to do remove this character from my prompt?
1
vote
2answers
347 views

Bash prompt output colors change after first 2 lines of output

I customized my bash PS1 prompt with this ~/.bashrc file. I can't seem to figure out why my output colors change after the first 2 lines of output. Any ideas what could be causing the issue?
0
votes
3answers
521 views

How do I change the default prompt from “#” to “>”?

How can I change the default prompt in Linux (red-hat 5.4) from "#" to ">"? example [root@moon11 root]# to [root@moon11 root]>
8
votes
2answers
2k views

zsh right-justify in ps1

I'd like a multi-line zsh prompt with a right alined part, that will look something like this: 2.nate@host:/current/dir 16:00 -> I know about ...
3
votes
1answer
2k views

How do I change shell prompt permanently?

I use PS=$ to change the shell prompt to $, but when I restart the shell, I have to do it again. Is there a way to change the shell prompt permanently?
1
vote
2answers
1k views

How to fix my bash prompt with long lines?

I have the following bash prompt: YELLOW="\[\033[0;33m\]" GREEN="\[\033[0;32m\]" RESET='\e[0m' export PS1="$GREEN[\W]$YELLOW \$(__git_ps1 \"(%s) \")$RESET\\$ " It looks like this: Which is what ...
6
votes
1answer
299 views

Custom prompt botched during history and control-a in OS X's Terminal.app using Bash

I customized my prompt in .bash_profile to look like this: export PS1="\w \e[0;32m\$(vcprompt -f '[%n:%b]')\e[m\$ " Now, when I press up arrow to go back through history, find the one I want, then ...
1
vote
3answers
333 views

How can I view all the results outputted to the Command Prompt?

The output from running aircrack-ng shows all the packets from the capture file, but I'm unable to view the top of this output, only the last 150 lines. I need to view the top in order to find the ...
2
votes
2answers
2k views

~/.profile not being executed when Terminal opens? [OS X 10.6.8]

Somehow my bash prompt got changed to "elementary:~ steven$" and I want to change it back to the default prompt. I've added the following first to ~/.bashrc then to ~/.profile: export PS1="\s-\v\$ " ...
1
vote
2answers
1k views

Mac OS X Lion terminal places command prompt in the middle of PS1 envvar

Before I installed Lion opening a terminal window placed the cursor at the end of the prompt like so: Wed Aug 31{shirsch4@Susan-Hirschs-iMac}/projects/perl/perl/lib/Utils--><cursor> Now ...