mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 15:26:16 -04:00
parent
c0d82c551c
commit
1259c09a46
|
|
@ -110,7 +110,8 @@ forgit::ignore() {
|
|||
[ -d $FORGIT_GI_REPO ] || forgit::ignore::update
|
||||
local IFS cmd args cat
|
||||
# https://github.com/wfxr/emoji-cli
|
||||
hash bat &>/dev/null && cat='bat -l gitignore --color=always --style=numbers,grid' || cat="cat"
|
||||
# hash bat &>/dev/null && cat='bat -l gitignore --color=always --style=numbers,grid' || cat="cat"
|
||||
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
|
||||
IFS=$'\n' args=($@) && [[ $# -eq 0 ]] && args=($(forgit::ignore::list | nl -nrn -w4 -s' ' |
|
||||
|
|
|
|||
Loading…
Reference in a new issue