From d9e0ad2e88e20b3eff2f9225ca63d018f79d2a2a Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sat, 18 Jul 2026 04:45:40 +0800 Subject: [PATCH] =?UTF-8?q?dot:=20=E5=8E=BB=E6=8E=89=20realpath=20-m=20?= =?UTF-8?q?=E4=BB=A5=E5=B0=BD=E9=87=8F=E5=85=BC=E5=AE=B9=20FreeBSD=20(?= =?UTF-8?q?=E5=85=B6=20realpath=20=E4=B8=8D=E6=94=AF=E6=8C=81=20-m=20?= =?UTF-8?q?=E4=B8=94=E8=A1=8C=E4=B8=BA=E5=AD=98=E5=9C=A8=E5=B7=AE=E5=BC=82?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot/.bashrc.d/android-studio.bash | 2 +- dot/.bashrc.d/fnm.bash | 2 +- dot/.bashrc.d/function.bash | 4 ++-- dot/.bashrc.d/llama-cpp.bash | 2 +- dot/.bashrc.d/manager/mise.bash | 2 +- dot/.bashrc.d/manager/rust.bash | 2 +- dot/.bashrc.d/pnpm.bash | 2 +- dot/.bashrc.d/uv.bash | 2 +- dot/.bashrc.d/volta.bash | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dot/.bashrc.d/android-studio.bash b/dot/.bashrc.d/android-studio.bash index 2fb75cf..7c91486 100644 --- a/dot/.bashrc.d/android-studio.bash +++ b/dot/.bashrc.d/android-studio.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir diff --git a/dot/.bashrc.d/fnm.bash b/dot/.bashrc.d/fnm.bash index 35fa523..a9b34cb 100644 --- a/dot/.bashrc.d/fnm.bash +++ b/dot/.bashrc.d/fnm.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir diff --git a/dot/.bashrc.d/function.bash b/dot/.bashrc.d/function.bash index 311f622..d0857a9 100644 --- a/dot/.bashrc.d/function.bash +++ b/dot/.bashrc.d/function.bash @@ -9,7 +9,7 @@ generate-bash-completion() { fi local completion_dir="${HOME}/.local/share/bash-completion/completions" - local completion_file="$(realpath -m "${completion_dir}/${file}")" + local completion_file="${completion_dir}/${file}" if [[ -d "$completion_dir" && ! -w "$completion_dir" ]]; then echo "ERROR: has no permission to write to directory '${completion_dir}'" >&2 @@ -64,7 +64,7 @@ load-bash-completion() { local completion_dir="${HOME}/.local/share/bash-completion/completions" for file in "${files[@]}"; do - local completion_file="$(realpath -m "${completion_dir}/${file}")" + local completion_file="${completion_dir}/${file}" if [[ ! -e "$completion_file" ]]; then if [[ "$silence" == false ]]; then diff --git a/dot/.bashrc.d/llama-cpp.bash b/dot/.bashrc.d/llama-cpp.bash index 4cf79c0..bcf9187 100644 --- a/dot/.bashrc.d/llama-cpp.bash +++ b/dot/.bashrc.d/llama-cpp.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir diff --git a/dot/.bashrc.d/manager/mise.bash b/dot/.bashrc.d/manager/mise.bash index 2431341..8f40693 100644 --- a/dot/.bashrc.d/manager/mise.bash +++ b/dot/.bashrc.d/manager/mise.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/../function.bash" unset basedir diff --git a/dot/.bashrc.d/manager/rust.bash b/dot/.bashrc.d/manager/rust.bash index 730ce0d..d065795 100644 --- a/dot/.bashrc.d/manager/rust.bash +++ b/dot/.bashrc.d/manager/rust.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/../function.bash" unset basedir diff --git a/dot/.bashrc.d/pnpm.bash b/dot/.bashrc.d/pnpm.bash index 310cfa5..a7d41a5 100755 --- a/dot/.bashrc.d/pnpm.bash +++ b/dot/.bashrc.d/pnpm.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir diff --git a/dot/.bashrc.d/uv.bash b/dot/.bashrc.d/uv.bash index 138b13c..b287472 100644 --- a/dot/.bashrc.d/uv.bash +++ b/dot/.bashrc.d/uv.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir diff --git a/dot/.bashrc.d/volta.bash b/dot/.bashrc.d/volta.bash index 2716380..cb17c7c 100644 --- a/dot/.bashrc.d/volta.bash +++ b/dot/.bashrc.d/volta.bash @@ -1,4 +1,4 @@ -basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}")) +basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}")) source "${basedir}/function.bash" unset basedir