aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/functions/bathelp.fish6
-rw-r--r--fish/functions/eza.fish2
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