diff options
| author | Nathan Lasseter <nathan.je.lasseter@googlemail.com> | 2011-05-14 19:05:56 +0100 |
|---|---|---|
| committer | Nathan Lasseter <nathan.je.lasseter@googlemail.com> | 2011-05-14 19:05:56 +0100 |
| commit | 6000e9264717ca3590c1cc8881ca054f197d4222 (patch) | |
| tree | bc472dc03fe7e854ef3649ee6a832e0e84a78e62 | |
| parent | 319e7975a48a99dec0e3295cf66523a0149bab89 (diff) | |
Coloured prompt
| -rw-r--r-- | functions/fish_prompt.fish | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index c90cb7b..84c7e83 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -1,5 +1,9 @@ function fish_prompt - printf '[%s@%s] ' (echo $USER) (cat /etc/hostname) + printf '[' + printf '%s%s%s' (set_color blue) (echo $USER) (set_color normal) + printf '@' + printf '%s%s%s' (set_color green) (cat /etc/hostname) (set_color normal) + printf '] ' printf '%s%s' (set_color red) (pwd) printf '%s>: ' (set_color normal) end |
