User Tools

Site Tools


resources:bash_resources

This is an old revision of the document!


bash variables

<2014.6.24>

List names, values and types of all variables

Useful on the command line, to see what you're working with:

declare -p

bash command prompt customization

anthony@anthony-VirtualBox:~$ cp -p .bashrc .bashrc.orig

Made this change:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
# orig. line:
#    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# adc changed 2016.01.27:
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ '
fi

http://askubuntu.com/questions/16728/hide-current-working-directory-in-terminal

resources/bash_resources.1453945912.txt.gz · Last modified: (external edit)