Skip to content

Instantly share code, notes, and snippets.

@glazeus
Last active August 27, 2018 09:32
Show Gist options
  • Select an option

  • Save glazeus/acd9b62467ffa503ea570aadd28f541f to your computer and use it in GitHub Desktop.

Select an option

Save glazeus/acd9b62467ffa503ea570aadd28f541f to your computer and use it in GitHub Desktop.
bash-current-folder-location

Change 'w' to 'W'

FROM (like):

PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ '

TO (like):

PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\W[\033[00m]$ '

location:

cat ~/.bashrc | grep 'PS1='

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment