更新 src/alias.txt

This commit is contained in:
2026-07-03 20:38:24 +00:00
parent 5ab7e52cf5
commit 1d56aebd9e
+19 -15
View File
@@ -276,16 +276,6 @@ portcheck() {
}
alias p='portcheck'
countfiles() {
dir="${1:-.}"
find "$dir" -type f | rev | cut -d"." -f1 | rev | sort | uniq -c
}
alias lst=countfiles
lsd() {
du -h --max-depth=1 $1 | sort -h
}
findfile() {
find . -type f -name "*.$1" -exec du -h '{}' + | sort -h
}
@@ -301,8 +291,24 @@ bak() {
cp "$1" "$1.bak"
}
alias l='ls --color=auto'
alias s='ls --color=auto'
ls() {
command ls -CF --color=auto "$@"
}
alias l='ls'
alias s='ls'
ll() {
command ls -aCF --color=auto "$@"
}
lst() {
dir="${1:-.}"
find "$dir" -type f | rev | cut -d"." -f1 | rev | sort | uniq -c
}
lsd() {
du -h --max-depth=1 $1 | sort -h
}
alias cc='cbm'
@@ -403,6 +409,4 @@ alias nnc='micro /opt/dk/caddy/conf/Caddyfile && docker compose -f /opt/dk/caddy
alias csr='docker compose -f /opt/dk/caddy/compose.yml exec caddy caddy reload --config /etc/caddy/Caddyfile'
alias cap='caddy hash-password'
alias psr='systemctl restart php8.2-fpm && systemctl status php8.2-fpm'
alias ll='ls -a'
alias psr='systemctl restart php8.2-fpm && systemctl status php8.2-fpm'