this commit introduces the `has` function. Now I can ensure that any command I want to alias or call is available first. This should allow the config to automatically slot in even where systems aren't configured in the way I would expect
5 lines
100 B
Plaintext
5 lines
100 B
Plaintext
chpwd() {
|
|
[ ! has glow ] && return 0
|
|
find $PWD -maxdepth 1 -iname 'readme.md' -exec glow {} \;
|
|
}
|