Skip to main content

Posts

Showing posts from June, 2013

I made a GIF!

Shorter Linux Prompt

When dealing with deeply nested directories having the full path in the prompt is less than optimal.  This provides only the present working directory... PS1="${debian_chroot:+($debian_chroot)}\u@\h:/[...]/\W/\n[`date +%Y-%m-%d_%H:%M:%S:%N`] \$ " Another version that does not have the options specific to my chrooted environment is... PS1="\u@\h:/[...]/\W/\n[`date +%Y-%m-%d_%H:%M:%S:%N`] \$ "