many changes

This commit is contained in:
2025-04-28 10:31:47 +08:00
parent bbced64364
commit f803a27418
5 changed files with 50 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ fi
# copying $HOME/.zshrc
current_dir=$(dirname $(realpath "$0"))
if $(file "$HOME/.zshrc"); then
if [ -f "$HOME/.zshrc" ]; then
if $(file "$HOME/.zshrc" | grep -q "symbolic link") ; then
if [[ $(readlink "$HOME/.zshrc") != "$current_dir/zshrc" ]]; then
ln -sf "$current_dir/zshrc" "$HOME/.zshrc"