0
votes
0answers
78 views

My custom fish shell prompt keeps resetting every reboot

I switched to fish shell a month ago and I'm quite pleased with it. But recently, my custom prompt keeps resetting to the default prompt every time I turn on my PC. When opening the terminal, I'm ...
0
votes
1answer
93 views

How to change bash prompt?

I'd like to change my bash prompt when I login. But even after I change .bashrc and re-login, it still prompts the old one. What goes wrong please? I want to get [\u@\h \W]\$ but I get \s-\v\$ for ...
0
votes
2answers
94 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: ...
0
votes
1answer
721 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
3answers
91 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
109 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
267 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?
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 ...
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 ...
0
votes
3answers
548 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]>
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?
0
votes
1answer
159 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 ...
11
votes
3answers
3k 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
166 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): ...
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 ...
2
votes
1answer
324 views

How can I minimise my Bash shell prompt?

Currently the terminal prompt looks like this: [karlis@karlis-desktop current_folder]$ How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets? I checked ...
2
votes
1answer
213 views

'sourcing' from the bash prompt

I have a little script that sets my proxy system wide in one go, it calls gconftool-2, sets a proxy in ~/.ssh/config and sets the proxy for apt. This is all relatively simple. The real problem comes ...
0
votes
2answers
118 views

How do I add history/reverse_matching feature to windows prompt?

In linux prompt,we can type !mysql and so on to match a history command to save time. Is there a utility for windows(XP to be exact) that enables this feature?
2
votes
3answers
1k views

How to change prompt in jailshell

My ISP has switched to jailshell at some point, and now when I SSH in my prompt is always: -jailshell-3.2$ I'd like it to be: `pwd` $ Where do I configure this? I seem to recall some kind of ...