From b472f6b758bcea483e127f5f63a5dca539f4946a Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Mon, 7 Apr 2025 21:21:20 -0300 Subject: [PATCH] Don't redefine standard unix tools --- dot_config/nushell/config.nu | 11 +++++++++++ dot_config/zsh/dot_zshrc | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dot_config/nushell/config.nu b/dot_config/nushell/config.nu index 5ecacbd..4e79fd3 100644 --- a/dot_config/nushell/config.nu +++ b/dot_config/nushell/config.nu @@ -17,5 +17,16 @@ # You can remove these comments if you want or leave # them for future reference. +alias corels = ls + +def --wrapped ls [...rest] { + if '-a' in $rest or '--all' in $rest or not (".hidden" | path exists) { + (corels ...$rest) + } else { + (corels ...$rest) | where name not-in (cat .hidden) + } +} + + mkdir ($nu.data-dir | path join "vendor/autoload") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu") diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index f98d744..47b7b09 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -20,7 +20,7 @@ alias cd="z" alias cat="bat -p" alias find="fd" alias bc="numbat" -alias sed="sd" +#alias sed="sd" alias du="dust" alias tldr="tldr" alias xxd="hexyl"