Some aliases moved to utils
This commit is contained in:
14
utils/.local/bin/what
Executable file
14
utils/.local/bin/what
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
|
||||
type "$1" 2>/dev/null
|
||||
type -t "$1" 2>/dev/null
|
||||
type -a "$1" 2>/dev/null
|
||||
type -P "$1" 2>/dev/null
|
||||
which -a "$1" 2>/dev/null
|
||||
which "$1" \
|
||||
&& file -b "$(which "$1")" \
|
||||
&& file -L "$(which "$1")"
|
||||
type -a "$1" 2>/dev/null
|
||||
command -v "$1"
|
||||
whereis "$1"
|
||||
Reference in New Issue
Block a user