mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-12 00:06:18 -04:00
parent
cf9a37aed7
commit
aafb2bca05
|
|
@ -89,7 +89,7 @@ export FORGIT_GI_SRC=$FORGIT_GI_REPO/templates
|
|||
forgit::ignore() {
|
||||
[ -d $FORGIT_GI_REPO ] || forgit::ignore::update
|
||||
local IFS cmd args cat
|
||||
# https://github.com/wfxr/emoji-cli
|
||||
# https://github.com/sharkdp/bat.git
|
||||
hash bat &>/dev/null && cat='bat -l gitignore --color=always' || cat="cat"
|
||||
cmd="$cat $FORGIT_GI_SRC/{2}{,.gitignore} 2>/dev/null"
|
||||
# shellcheck disable=SC2206,2207
|
||||
|
|
|
|||
Loading…
Reference in a new issue