From 1d56aebd9e5e246083ac36e730b9f46a4648a642 Mon Sep 17 00:00:00 2001 From: adminroot Date: Fri, 3 Jul 2026 20:38:24 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20src/alias.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/alias.txt | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/alias.txt b/src/alias.txt index 98d018c..4c2c46c 100644 --- a/src/alias.txt +++ b/src/alias.txt @@ -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' \ No newline at end of file