diff options
| author | 2026-03-28 16:05:23 +0000 | |
|---|---|---|
| committer | 2026-03-28 20:37:37 +0000 | |
| commit | 746b89d028b6cf42adc918e9524f14889086eb7b (patch) | |
| tree | 69b2bf5c7b865a97cbbe6b2b1ac2610148876d4a | |
| parent | 7089433bda253cbff00d71151d8e1d05bd7a61ff (diff) | |
bathelp e eza menos agressivo
| -rw-r--r-- | fish/functions/bathelp.fish | 6 | ||||
| -rw-r--r-- | fish/functions/eza.fish | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/fish/functions/bathelp.fish b/fish/functions/bathelp.fish new file mode 100644 index 0000000..3f6119a --- /dev/null +++ b/fish/functions/bathelp.fish @@ -0,0 +1,6 @@ +function bathelp --wraps=bat --description 'bat(1) pra ler comandos de ajuda com mais conforto' + if not command --query bat + exit 1 + end + command $argv[1] --help | bat --plain --language help +end diff --git a/fish/functions/eza.fish b/fish/functions/eza.fish index 5a8a0e6..66b5335 100644 --- a/fish/functions/eza.fish +++ b/fish/functions/eza.fish @@ -1,7 +1,7 @@ function eza --wraps eza --description "A modern alternative to ls" if ! command --query eza echo "`eza` is not installed" - exit + return end command eza --group-directories-first --header --icons=auto --color=auto $argv |
