]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Add newline to bash prompt
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 17 Oct 2018 10:16:07 +0000 (11:16 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 17 Oct 2018 10:16:07 +0000 (11:16 +0100)
Gives more space for the actuall command on small
terminals

bash/.bashrc

index 2ba7279b7294f8d1b9ed2f8ee7c4816810ace780..02d34c9c08cdd7b818b2a5422f46c3f5e6821eb9 100644 (file)
@@ -117,7 +117,7 @@ function __prompt_command()
   PS1+="${debian_chroot:+($debian_chroot)}"
 
   # basic information (user@host:path)
-  PS1+="\[$RED$BOLD\]\u\[$RESET\]@\[$RED$BOLD\]\h\[$RESET\]:\[$BLUE\]\w\[$RESET\] "
+  PS1+="\[$RED$BOLD\]\u\[$RESET\]@\[$RED$BOLD\]\h\[$RESET\]:\[$BLUE\]\w\[$RESET\]\n"
 
   
   # prompt $ or # for root