diff options
-rw-r--r-- | .bashrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -44,6 +44,12 @@ get_nonzero_retcode() { fi } +# select a random binary from the corutils package and open the manual for it +# works only on Arch Linux +rand_util() { + pacman -Ql coreutils | grep bin | awk '{print $2}' | sed '/^.*\/$/d' | shuf -n 1 - | xargs man +} + PS1='[\e[31m$(get_nonzero_retcode)\e[0m\e[32;1m$(date +"%H:%M:%S")\e[0m \e[35;1m\u@\h\e[0m\e[33;1m$(parse_git_branch)\e[0m \e[36;1m\W\e[0m] $ ' |