Browse Source

Add defaults for PS1 composition

Now host/user overrides don't have to be created.
Alois Mahdal 8 years ago
parent
commit
a5caa18741
2 changed files with 15 additions and 0 deletions
  1. 14
    0
      dotfiles/bash/defaults.bashrc
  2. 1
    0
      dotfiles/bash/head.bashrc

+ 14
- 0
dotfiles/bash/defaults.bashrc View File

@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+
4
+#
5
+# defaults to be overriden in host/hostname.bashrc and user/username.bashrc
6
+#
7
+
8
+make_ps1u() {
9
+    echo "";
10
+}
11
+
12
+make_ps1h() {
13
+    echo "$blue\h$normal";
14
+}

+ 1
- 0
dotfiles/bash/head.bashrc View File

@@ -4,6 +4,7 @@ mkdir -p /var/tmp/bash-rv
4 4
 
5 5
 for include in \
6 6
   "${HOME}/.bash/colors.bashrc" \
7
+  "${HOME}/.bash/defaults.bashrc" \
7 8
   "${HOME}/.bash/main.bashrc" \
8 9
   "${HOME}/.bash/user/$(whoami).bashrc" \
9 10
   "${HOME}/.bash/host/$(hostname -s).bashrc" \