更新 src/alias.txt

This commit is contained in:
2026-07-03 20:31:01 +00:00
parent 0e4c461cca
commit 5ab7e52cf5
+11 -7
View File
@@ -6,7 +6,7 @@ alias t='zellij attach'
alias tat='zellij attach' alias tat='zellij attach'
alias tlr='zellij delete-all-sessions' alias tlr='zellij delete-all-sessions'
alias cr='cd /opt/rust && ls' alias cr='cd /opt/rust'
alias rc='rustc' alias rc='rustc'
alias cg='cargo' alias cg='cargo'
alias cgr='cargo run' alias cgr='cargo run'
@@ -48,7 +48,7 @@ alias ct='cd /opt/tmp'
alias nsh='micro ~/.ssh/config' alias nsh='micro ~/.ssh/config'
alias las='echo $SSH_CLIENT' alias las='echo $SSH_CLIENT'
alias dd='exit' alias dd='exit'
alias csh='cd /opt/data/oplist/share && ls' alias csh='cd /opt/data/oplist/share'
alias tal='tar -tvf' alias tal='tar -tvf'
tax() { tax() {
if [ $# -ne 2 ]; then if [ $# -ne 2 ]; then
@@ -108,7 +108,7 @@ tac() {
esac esac
} }
alias csv='cd /etc/systemd/system/ && ls' alias csv='cd /etc/systemd/system/'
alias hs='history' alias hs='history'
alias lg='journalctl -xeu' alias lg='journalctl -xeu'
coa() { coa() {
@@ -187,7 +187,7 @@ dpwd() {
docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password '$1' docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password '$1'
} }
alias cdk="cd /opt/dk && ls" alias cdk="cd /opt/dk"
dt() { dt() {
docker run --rm -it $1 sh docker run --rm -it $1 sh
@@ -231,10 +231,14 @@ c() {
ls ls
} }
alias cdd='cd ../ && ls' cd() {
builtin cd "$@" && ls --color=auto
}
alias cdd='cd ../'
shopt -s autocd shopt -s autocd
alias ce='cd /etc && ls' alias ce='cd /etc'
alias co='cd /opt && ls' alias co='cd /opt'
alias dfh='df -h | grep -v '/var/lib/container' | grep -vE '^tmpfs' | grep -vE '^overlay'' alias dfh='df -h | grep -v '/var/lib/container' | grep -vE '^tmpfs' | grep -vE '^overlay''
alias sr='source /etc/profile && source ~/.bashrc' alias sr='source /etc/profile && source ~/.bashrc'
alias nn='nano' alias nn='nano'