mirror of
https://github.com/notwa/rc
synced 2024-05-20 10:53:23 -07:00
flesh out some compatibility stuff i forgot
This commit is contained in:
parent
e2f7fddb60
commit
552ddc6080
9
sh/aur
9
sh/aur
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
# http://aur.sh with massive feature creep
|
||||
# YES_ZSH
|
||||
|
||||
# TODO: check compatibility with bash and dash.
|
||||
# NO_ZSH
|
||||
# YES_BASH
|
||||
# NO_DASH
|
||||
# NO_ASH
|
||||
|
||||
aur() { ### @-
|
||||
### download, edit, make, and install packages from the
|
||||
|
@ -136,4 +137,6 @@ aur() { ### @-
|
|||
[ "$fail" -eq 0 ] && return 0 || return 1
|
||||
}
|
||||
|
||||
[ -n "${preload+-}" ] || . ~/sh/preload || exit 2
|
||||
eval ${preload:-preload} confirm
|
||||
[ -n "${preload+-}" ] || aur "$@"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# YES_ZSH
|
||||
# YES_BASH
|
||||
# NO_DASH
|
||||
# NO_ASH
|
||||
|
||||
### @ confirm
|
||||
### display a simple yes-or-no prompt and return 0-or-1 respectively.
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# YES_ZSH
|
||||
# YES_BASH
|
||||
# YES_DASH
|
||||
# YES_ASH
|
||||
|
||||
# works with busybox awk.
|
||||
|
||||
countdiff() { ### @-
|
||||
### count the number of lines changed between two files.
|
||||
|
|
1
sh/ff
1
sh/ff
|
@ -2,6 +2,7 @@
|
|||
# YES_ZSH
|
||||
# YES_BASH
|
||||
# YES_DASH
|
||||
# YES_ASH
|
||||
|
||||
ff() { ### @-
|
||||
### select a file from a given or current directory using
|
||||
|
|
Loading…
Reference in New Issue
Block a user