The prompt tag has no wiki summary.
0
votes
0answers
14 views
How do I change my bash prompt to say the user I'm logged in as + my current directory? [duplicate]
What I mean is, right now my bash prompt looks like this:
http://puu.sh/2UH1K.png
I want it instead to say:
{username} @ {current directory}
(EG: root@/home/public_html/ ~)
0
votes
2answers
37 views
Sending special bash characters to a custom function
I read this great article on customizing the bash prompt:
http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/
I also read about using 256 colors in bash:
...
1
vote
2answers
35 views
How to prevent zsh from showing environment variable name instead of current path?
I'm using "oh-my-zsh".
I have an environment variable set to the current path, let's say:
PROJECT=/home/me/projects/client/project
and my zsh prompt looks like this:
me@my-machine:~PROJECT$
...
2
votes
1answer
146 views
Ubuntu 12.10 - How to change login screen to allow login to active directory domain
So, I have an Ubuntu 12.10 machine that has been joined to an active directory domain. However, when the machine turns on and I am presented with a login screen, I cant just type DOMAIN\user. All ...
1
vote
0answers
37 views
What is rootfs# and what can you do with it?
I have been dropped to a [rootfs /]# prompt many times when booting my Arch Linux distro failed. Usually I found I couldn't fix the problem with the limited commands available, so I would use any ...
0
votes
1answer
54 views
Check if Files are Being Written To
Note: I've read the other question, but I need it differently.
I'm working on my NAS, which also works as a storing device for my PVR. Now I want to change my shell prompt on the NAS whenever the PVR ...
1
vote
1answer
130 views
How to configure message on Remote Desktop access on Windows Server 2008 R2?
I have Windows Server 2008 R2. When a user is logged in and another user (with same credentials) tries to logon, I need to display a prompt with the message that another user is already logged in.
If ...
0
votes
1answer
143 views
%1 in registry not being expanded in Windows 8
I have made a tool that adds some things to the context menu when right clicking a directory, inside the 'empty space' of a directory, or a drive. I have used this extensively in Windows XP, Vista, ...
1
vote
1answer
146 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
28 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
1answer
96 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
128 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
46 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
0answers
69 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
74 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
61 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
63 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
208 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
130 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
50 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 ...
0
votes
1answer
363 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.
3
votes
1answer
150 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
75 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 ...
1
vote
2answers
120 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 ...
1
vote
1answer
86 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
132 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
59 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 ...
1
vote
0answers
126 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
1answer
512 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 ...
4
votes
4answers
2k 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
65 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
553 views
PS1 value not changing
I've logged in as the root of a machine. I changed the value of PS1 as:
PS1="$PWD> ". I want it to reflect the change in directory. However, when I do change directories, the prompt does not change ...
4
votes
1answer
430 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
2answers
260 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
348 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
908 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
82 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
284 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
63 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
256 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
453 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
111 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
408 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
240 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
847 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
390 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
134 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:
...
8
votes
2answers
657 views
mysql command line color prompt
mysql command line color prompt:
I want to add colors to my MySQL prompt:
I have so far in a script (database.sh):
mysql -uroot -hlocalhost -A --prompt="\u@\h:\d> "
I would like root to be ...
12
votes
5answers
1k 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
150 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 ...
