From 66c58fb70c5cd442533f6f4a3908eec45734f1ab Mon Sep 17 00:00:00 2001 From: adminroot Date: Thu, 18 Sep 2025 00:35:38 -0700 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20alias.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alias.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/alias.txt b/alias.txt index 87d7812..1b53cc4 100644 --- a/alias.txt +++ b/alias.txt @@ -283,7 +283,6 @@ function 7zx() { local direct_pattern='\.(zip|7z|rar)$' if [[ "$lower_name" =~ $tar_pattern ]]; then - # 先解压外层(xz/gz/bz2/zst),再解tar 7z x -so "$archive" | 7z x -si -ttar -o"$outdir" elif [[ "$lower_name" =~ $direct_pattern ]]; then # 直接解压 @@ -326,7 +325,6 @@ function 7zxd() { if [[ $? -eq 0 ]]; then echo "✅ 解压成功,删除源文件..." - # 删除所有相关分卷,如 .part1.rar .part2.rar 等或 .001/.002 local prefix="${file%%.*}" find . -maxdepth 1 -type f -regex "./$prefix\\..*" -delete else @@ -404,21 +402,6 @@ alias psr='systemctl restart php8.2-fpm && systemctl status php8.2-fpm' # . ~/.alias.md # fi -# 保存后运行 source ~/.bashrc - - -bk() { - # 检查tmux是否在运行状态,如果不是,则启动tmux - if ! tmux ls >/dev/null 2>&1; then - tmux new-session -d -s benchmark 'tmux rename-window "Benchmark"; /www/bk/webBenchmark_linux_x64 -c 32 -s '$1'' - else - # 如果tmux已经运行,创建一个新窗口来运行命令 - tmux new-window -n "Benchmark" '/www/bk/webBenchmark_linux_x64 -c 32 -s '$1'' - fi - # 可选:如果你希望自动连接到tmux会话,取消下面的注释 - tmux attach-session -d -} - alias pyv='pyenv virtualenv' alias pya='pyenv activate' alias pyd='pyenv deactivate'