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:
parent
e348428a10
commit
d213384ba4
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ else
|
|||
ll() { ls -lAX --group-directories-first --color=force "$@" | less; }
|
||||
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".
|
||||
local commit="${1:-HEAD}"
|
||||
[ $# -le 1 ] || { printf '%s: %s\n' gdp "too many arguments" >&2; return 64; }
|
||||
|
|
Loading…
Add table
Reference in a new issue