New answers tagged

0 votes

Conditional PS1

# .bashrc example edits to PS1 for git With Abbreviated Paths: # -- With color: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[01;33m\]$([[ &...
Dennis Jorgenson's user avatar
0 votes

Hostname in prompt string is "localhost"

You need to change the contents of /etc/hostname to the actual name of your host, and then reboot. You can change the name of your host for the current session using the 'hostname' command (if logged ...
Barbablanca's user avatar
3 votes

Equivalent of PSReadLine for bash

Bash, which is the default shell in Ubuntu and most GNU/Linux distribution, does not come with support for most of these fancy features. Though you can get closer with a couple tweaks to the ...
mutageneral's user avatar

Top 50 recent answers are included