From 10b8e58a79ab888f9451924e77bcd08e5a1152f6 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 23 Jun 2023 03:25:22 -0700 Subject: [PATCH] shell: add llw - ls a file in the PATH --- .config/shell/functions/llw | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/shell/functions/llw diff --git a/.config/shell/functions/llw b/.config/shell/functions/llw new file mode 100644 index 0000000..5201ded --- /dev/null +++ b/.config/shell/functions/llw @@ -0,0 +1,12 @@ +#!/bin/sh +# llw - "ls -l which" +# used to find information on one or more binaries in the PATH +# usage: +# llw bash firefox BespokeSynth + +llw() { + until [ $# = 0 ]; do + ls -l "$(which "$1")" + shift + done +}