diff options
| author | Robert Günzler <r@gnzler.io> | 2020-01-29 16:15:37 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-01-29 17:55:11 +0100 |
| commit | ea3a79d71a6432c58bc26738ff929d1f774aecf0 (patch) | |
| tree | c99dc8c9cce70ae9e06224bb9db3cc3a46b04a19 | |
| parent | 9a419430055acd70789269e1bdfd97cc50dc5d4e (diff) | |
prompt: Make it easier to configure
| -rw-r--r-- | .profile | 4 | ||||
| -rwxr-xr-x | bin/hibiki/prompt | 5 |
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} ❱ " |