更新 src/alias.txt
This commit is contained in:
+18
-14
@@ -276,16 +276,6 @@ portcheck() {
|
|||||||
}
|
}
|
||||||
alias p='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() {
|
findfile() {
|
||||||
find . -type f -name "*.$1" -exec du -h '{}' + | sort -h
|
find . -type f -name "*.$1" -exec du -h '{}' + | sort -h
|
||||||
}
|
}
|
||||||
@@ -301,8 +291,24 @@ bak() {
|
|||||||
cp "$1" "$1.bak"
|
cp "$1" "$1.bak"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias l='ls --color=auto'
|
ls() {
|
||||||
alias s='ls --color=auto'
|
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'
|
alias cc='cbm'
|
||||||
|
|
||||||
@@ -404,5 +410,3 @@ alias csr='docker compose -f /opt/dk/caddy/compose.yml exec caddy caddy reload -
|
|||||||
alias cap='caddy hash-password'
|
alias cap='caddy hash-password'
|
||||||
|
|
||||||
alias psr='systemctl restart php8.2-fpm && systemctl status php8.2-fpm'
|
alias psr='systemctl restart php8.2-fpm && systemctl status php8.2-fpm'
|
||||||
|
|
||||||
alias ll='ls -a'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user