Add github_install_scripts to get github paths

main
Buddy Sandidge 1 year ago
parent 359135964c
commit 26425d0815

@ -1,4 +1,5 @@
# vim: filetype=sh # chezmoi:template:left-delimiter=#{{
#{{- /* vim: set filetype=sh: */ -}}
#shellcheck shell=sh #shellcheck shell=sh
source_env_file() { source_env_file() {
@ -13,6 +14,21 @@ source_env_file() {
)" )"
} }
#{{ if lookPath "rg" -}}
github_install_scripts () (
rg github.com "${HOME}/.local/bin" \
| sed 's/:/ /' \
| sed 's/=/ /g' \
| awk '{print $3}' \
| sed 's|https://github.com/||g' \
| sed 's|/| |g' \
| awk '{print $1 " " $2}' \
| sed 's| |/|g' \
| sort \
| uniq
)
#{{- end }}
make_scripts() ( make_scripts() (
for FILE in "$@"; do for FILE in "$@"; do
make_script "${FILE}" make_script "${FILE}"

Loading…
Cancel
Save