summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.profile4
-rwxr-xr-xbin/hibiki/prompt5
2 files changed, 6 insertions, 3 deletions
diff --git a/.profile b/.profile
index 161796e..bc2e458 100644
--- a/.profile
+++ b/.profile
@@ -17,9 +17,7 @@ export MAKEOPTS="-j${NUMCPUSplusone} -l${NUMCPUS}"
 export EMERGE_DEFAULT_OPTS="--jobs=${NUMCPUSplusone} --load-average=${NUMCPUS}"
 
 # Set prompt
-GREEN="\[$(tput setaf 2)\]"
-RESET="\[$(tput sgr0)\]"
-export PS1="${GREEN}\w${RESET} $(porcelain) ❱ "
+export PS1="$(prompt)"
 # enlable vi mode
 set -o vi
 bind -m vi-insert -x '"\C-l": clear'
diff --git a/bin/hibiki/prompt b/bin/hibiki/prompt
new file mode 100755
index 0000000..1a4fe6f
--- /dev/null
+++ b/bin/hibiki/prompt
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+GREEN="\[$(tput setaf 2)\]"
+RESET="\[$(tput sgr0)\]"
+echo "${GREEN}\w${RESET} ❱ "