From d919e1e493d96f10b1722cfb99621d26022258a0 Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Sat, 14 Nov 2020 07:22:32 +0100 Subject: [PATCH] Add ffile command Combination of file and type --- rc/functions.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc/functions.sh b/rc/functions.sh index b4fe548..bf0c52b 100644 --- a/rc/functions.sh +++ b/rc/functions.sh @@ -1,4 +1,11 @@ function jql() { - jq -C . "$@" | less -r + jq -C . "$@" | less -r } + +function ffile() { + local filename="$1" + shift + file $(type -p "$filename") $@ +} +