]> git.phdru.name Git - dotfiles.git/commitdiff
.profile: Add `$SHLVL` to simple `$PS1` prompt
authorOleg Broytman <phd@phdru.name>
Mon, 24 Aug 2020 20:02:49 +0000 (23:02 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 24 Aug 2020 20:03:30 +0000 (23:03 +0300)
.profile

index 20ba5a1aef033a63a6051670938bfb7a3e5a7f16..5fdca50d1fd5f09f9df350fe67769baac82e0d9f 100644 (file)
--- a/.profile
+++ b/.profile
@@ -180,7 +180,7 @@ if [ -t 0 ] ; then
          set_prompts
          unset set_prompts
       else
-         OPS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \\$"
+         OPS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \$SHLVL\\$"
       fi
 
       . "$ENV"