]> git.phdru.name Git - dotfiles.git/blobdiff - .bashrc
.shellrc: Move bash-only code to `.bashrc`
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 3255cb6d6892ad96e983e1b4674267dd501c840a..f516a374c36abd98560693fb7bfb4ed4247152fb 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -53,6 +53,14 @@ back() { cd - "$@"; }
 functions() { typeset -f "$@"; }
 j() { jobs; }
 
+if [ -r "$HOME"/admin/prog/bash_prompt ]; then
+    . "$HOME"/admin/prog/bash_prompt
+    set_prompt
+    unset set_prompt
+else
+    PS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \$SHLVL\\$ "
+fi
+
 if [ -z "$BASH_COMPLETION_COMPAT_DIR" ]; then
     if [ -d /usr/share/bash-completion -a -r /usr/share/bash-completion/bash_completion ]; then
         _BASH_COMPLETIONS_DIR=/usr/share/bash-completion/completions