The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

1
vote
1answer
960 views

how to connect to secured wireless network connection in cmd in windows?

I program on C#, I don't want to use P/invoke, so I will use shell, so I need to connect to a secured wireless network connection on the CMD in windows, I know how to connect to a wireless network but ...
1
vote
1answer
106 views

Arbitrary code execution in tcsh prompt?

I'd like to customize my prompt to include the output of an arbitrary command, like you can do in bash (e.g., I'd like to cat a file and have its (one-word) contents appear in the prompt, or show the ...
2
votes
2answers
639 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
0
votes
1answer
323 views

Zsh customized prompt and updating variable's value

I would like to use the value of a variable set in my zsh shell to display in my prompt line. For example, let's say export TOKEN='hello' is set in my session. At that time, I load my prompt which ...
1
vote
1answer
62 views

unable to ssh on the command prompt

I have a problem with ssh on my ubuntu laptop, but after several effort I was able to get the putty work by making changes to the proxy type: I check the http and set the proxyhost name to ...
2
votes
1answer
123 views

Line wrapping issues in bash/php

I am writing a program that prints colored lines, and the more I do with it the more I find myself working around line wrapping issues that come up. It is a sort of terminal written in php, here is ...
0
votes
2answers
273 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
94 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
149 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
419 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
272 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
113 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
826 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
844 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
243 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
362 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
380 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
89 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
197 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
78 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
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
3answers
542 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
722 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
5k 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
130 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
651 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
70 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
425 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
844 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
289 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?
7
votes
3answers
4k 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
432 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
793 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
544 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: ...
16
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
422 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 ...
6
votes
2answers
2k 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
4k 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
2answers
357 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
2answers
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 ...
1
vote
1answer
343 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
360 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
634 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]>
9
votes
3answers
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 ...