chore(nushell): remove risky and redundant aliases

This commit is contained in:
2026-06-14 21:54:13 +08:00
parent 8544a7ae7b
commit 0cae2d0fd9
-15
View File
@@ -19,21 +19,6 @@ export alias moon = curl wttr.in/Moon
export alias quote = curl https://api.quotable.io/random | from json | get content
export alias dadjoke = curl -H "Accept: application/json" https://icanhazdadjoke.com/ | from json | get joke
# --- Git ---
export alias g = git
# --- Navigation & Shell ---
export alias c = clear
export def reload [] { exec nu }
export def edit [] { ^$env.EDITOR ($env.NU_POLYJUICE_PATH | path join 'nu_polyjuice.nu') }
# --- File system ---
export alias tree = ls **/*
# --- Network ---
export alias myip = curl -s ifconfig.me
export def ports [] { ^netstat -ano | lines | where {|row| $row | str contains 'LISTENING'} | str trim }
# --- System ---
export def df [] {
if (which ^df | is-not-empty) {