Some aliases moved to utils

This commit is contained in:
2025-12-08 17:04:11 +08:00
parent 9ca95f6353
commit 94df267831
21 changed files with 99 additions and 62 deletions

14
utils/.local/bin/what Executable file
View 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"