From: Oleg Broytman Date: Mon, 24 Aug 2020 20:02:49 +0000 (+0300) Subject: .profile: Add `$SHLVL` to simple `$PS1` prompt X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=14cb6c405d35b8dda7e1b8c26376a90a61642cd9 .profile: Add `$SHLVL` to simple `$PS1` prompt --- diff --git a/.profile b/.profile index 20ba5a1..5fdca50 100644 --- 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"