1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

add busybox-static as a fallback for busybox

This commit is contained in:
Connor Olding 2024-07-06 04:50:54 -07:00
parent e348428a10
commit d213384ba4

View file

@ -104,6 +104,10 @@ else
ll() { ls -lAX --group-directories-first --color=force "$@" | less; } ll() { ls -lAX --group-directories-first --color=force "$@" | less; }
fi fi
if ! has busybox && has busybox-static; then
busybox() { busybox-static "$@"; }
fi
gdp() { ### @- invoke `gd` to diff a commit from its parent. the commit defaults to "HEAD". gdp() { ### @- invoke `gd` to diff a commit from its parent. the commit defaults to "HEAD".
local commit="${1:-HEAD}" local commit="${1:-HEAD}"
[ $# -le 1 ] || { printf '%s: %s\n' gdp "too many arguments" >&2; return 64; } [ $# -le 1 ] || { printf '%s: %s\n' gdp "too many arguments" >&2; return 64; }