New answers tagged prompt
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\]$([[ &...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
prompt × 648bash × 375
zsh × 114
shell × 88
terminal × 69
colors × 50
command-line × 49
linux × 32
shell-script × 28
tcsh × 21
ksh × 17
ssh × 15
escape-characters × 15
environment-variables × 14
git × 14
macos × 14
ubuntu × 13
command-history × 13
debian × 12
login × 12
gnome-terminal × 11
sudo × 10
password × 10
hostname × 10
oh-my-zsh × 10