diff options
| author | xengineering <me@xengineering.eu> | 2021-11-02 14:11:36 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2021-11-02 14:11:36 +0100 |
| commit | 10e6541c5449460ecac444c33b74b307189ad4fb (patch) | |
| tree | d994abd9fa873684598f67344770c6273fa977af | |
| parent | febf5790a95303542e2016d07d136bf1081f0dac (diff) | |
| download | dotfiles-10e6541c5449460ecac444c33b74b307189ad4fb.tar dotfiles-10e6541c5449460ecac444c33b74b307189ad4fb.tar.zst dotfiles-10e6541c5449460ecac444c33b74b307189ad4fb.zip | |
Add rand_util() Function to .bashrc
| -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] $ ' |
