]> git.phdru.name Git - dotfiles.git/blobdiff - admin/prog/bash_prompt
bash: Append `$SHLVL` directly to `$OPS1`
[dotfiles.git] / admin / prog / bash_prompt
index a262e5e4bd32ce65a1a155ac9e6c7c2ff01ac0f5..7c6117ce49aee8e58262d395b2b85ac2e61c15f0 100644 (file)
@@ -97,8 +97,6 @@ set_prompts() {
    OPS1+="${debian_chroot:+($debian_chroot)}"
    OPS1+="\`cgmem_which_prompt\`\u@\${HOSTNAME::5}:\`short_curdir\` "
    OPS1+="\$(prompt_git)"
-   OPS1+="\\$"
+   OPS1+="\\$\$SHLVL "
+   export OPS1
 }
-
-#set_prompts
-#unset set_prompts