]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
bash: Append `$SHLVL` directly to `$OPS1`
[dotfiles.git] / .profile
index 69491d008216d3d0b20d0a37d316b529e96382bd..20ba5a1aef033a63a6051670938bfb7a3e5a7f16 100644 (file)
--- a/.profile
+++ b/.profile
@@ -175,8 +175,6 @@ if [ -t 0 ] ; then
    fi
 
    if test -n "$BASH_VERSION"; then
-      . "$ENV"
-
       if [ -r "$HOME"/admin/prog/bash_prompt ]; then
          . "$HOME"/admin/prog/bash_prompt
          set_prompts
@@ -185,12 +183,12 @@ if [ -t 0 ] ; then
          OPS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \\$"
       fi
 
+      . "$ENV"
+
    else
       OPS1="${debian_chroot:+($debian_chroot)}`/usr/bin/whoami`@`/bin/hostname -s` >"
    fi
 
-   export OPS1
-
    ### biff controls new mail notification
    #biff n
    ### mesg controls messages (write/talk) from other users