Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
39 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
34 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
40 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 ...
0
votes
1answer
42 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
vote
1answer
88 views

How to set the command prompt's color in bash (Linux shell)?

Browsing last command's results in bash is a bit hard because command prompt's color and command result's color are same and this, make it hard to separate last command's results from it's previous ...
-1
votes
2answers
155 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
39 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
199 views

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

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
76 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?
1
vote
1answer
104 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
97 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
58 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: ...
2
votes
0answers
97 views

mysql command line color promt

mysql command line color promt: i want to add colors to my MySQL promt: i have so far in a script (database.sh): mysql -uroot -hlocalhost -A --prompt="\u@\h:\d> " so i would like root to be ...
12
votes
5answers
703 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 ...
0
votes
2answers
67 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 ...
1
vote
2answers
201 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 ...
0
votes
1answer
210 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 ...
0
votes
1answer
43 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. ...
0
votes
1answer
270 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
116 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
131 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
187 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]>
2
votes
1answer
238 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 ...
2
votes
1answer
91 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?
0
votes
0answers
160 views

IE8 prompts to download xml files

I'll try to keep this short. When I navigate to an intranet site by directly typing the ip address into IE8, IE8 will grab an xml file from the device and the XML file will run and display the web ...
1
vote
2answers
162 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 ...
3
votes
1answer
87 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
51 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 ...
1
vote
2answers
234 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
774 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 ...
4
votes
3answers
250 views

Windows 7 batch file: Why are these IF blocks keeping me from assigning variables to a value?

Here's the broken batch file: @echo off if prod==prod ( if xps==xps ( set i1=prodxpsi1 set i2=prodxpsi2 set e1=prodxpse1 set e2=prodxpse2 ) else ( set ...
2
votes
1answer
615 views

Windows 7 command prompt: rename files located on a network path (UNC path)

In the command prompt, I need a way up rename a file on a remote server. Conceptually, this is what I am looking for: ren \\servername\folder\file.txt \\servername\folder\file2.txt Aside from using ...
0
votes
1answer
55 views

Does the non-printing characters escape characters still needed for PS1 definition?

While modifying the definition of my PS1, I saw that "\[" and "\]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention ...
2
votes
1answer
801 views

tmux: sharing current window title (#T) from within nested tmux sessions

I have begun using tmux recently to really improve my terminal sessions. One thing I need to be able to do is connect to a remote server, which is also running tmux. However, I have found that the ...
1
vote
1answer
446 views

How do I hide the path in command line prompt on Windows?

I'm working on Windows 7 using the cmd console. How do I hide the path in the prompt?
0
votes
1answer
120 views

FreeBSD 8.2: Keystrokes in Bash do not show up

I just installed the latest FreeBSD 8.2 distro using Parallels Desktop. Problem: Whatever I type in the Bash/Shell it is not echoed on the screen. It's behaving like a password prompt. As soon I hit ...
1
vote
1answer
459 views

Kaspersky 2012 Firewall - prompt on new connection attempts

How can I get Kaspersky 2012 Firewall to ask me everytime if I want to allow or deny an application to connect to the internet the first time it asks and have it remember that until the application ...
4
votes
1answer
858 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 ...
4
votes
2answers
241 views

Escape non-printing characters in a function for a Bash prompt

In a Bash Prompt (PS1 variable), I'm calling a function to potentially add text to the prompt: export PS1="\u@\h \$(my_function) \$ " However, the function in the prompt contains ANSI color codes ...
6
votes
3answers
457 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 ...
1
vote
1answer
91 views

Bash Prompt Loses Characters

After writing a new prompt for Bash, I noticed that one character of my commands were being lost when it wrapped to the new line. Here is an image of the example (I typed 1234567890 over and over): ...
4
votes
2answers
105 views

Is it possible to get bash to display the first letter of each directory in my working path?

For example working in: /home/stuart/src/project/com/example/package /usr/lib/python2.6 would appear as: ~/s/p/c/e/package$ /u/l/python2.6$
1
vote
1answer
98 views

order for loop output command prompt

I'm doing the following to list some of my favorite videos in a directory (I'm going to pipe them into a text file soon..) for %i in (*avi *.mkv *mp4) do @echo %~ni I'd like to alphabetically order ...
0
votes
1answer
1k views

Running 2 explorer.exe instances with the “RunAs” Command

I've created 2 batch files. The first called admin.bat with the lines: @echo off cls runas /env /user:ADOMAIN\Administrator "\\path\dir\explorer.bat" and the other called explorer.bat with the ...
0
votes
2answers
234 views

See error code in bat file

In windows prompt i am launching an app. I'd like to see the error code it returns. How do i display it?
1
vote
1answer
200 views

Bash prompt breakdown

Can anyone explain the Ubuntu's bash prompt? It's basically username@box:~$ but the part that confuses me is $. Is it just a letter that can be of preference, or it has some actual meaning?
2
votes
2answers
175 views

Do I need to enclose ANSI escape sequences in \[ and \] in a bash prompt?

I want to customize my bash prompt using ANSI escape codes and have noticed that in some howtos the codes are enclosed in \[ and \] while in others they aren't. For exaple, these work equally well ...
2
votes
1answer
329 views

Bash command prompt overwrites the current line

My bash command prompt is: \e[32;1m[\e[m\h.\u \e[33;1m\W\e[m\e[32;1m]\e[0;36m::\e[m There must be something wrong with it, because on long lines, the current line is overwritten, instead of ...
0
votes
1answer
188 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 ...
1
vote
2answers
279 views

In GNU Screen, Recalled bash history command displays one character position to the left of actual location

I am running Red Hat 5 32-bit (2.6.18-194.26.1.el5). The issue is that when I recall any previous command in bash's history, the first character in the command is displayed immediately after the ...

1 2