* dfs reset; create_symlink check

* dfs cd

* add plugin extrace and autojump

* remove autojump

* enable ZSH_THEME
This commit is contained in:
2022-05-17 18:22:43 +08:00
committed by GitHub
parent 3b3728e324
commit 4fe4698bd2
2 changed files with 20 additions and 6 deletions

View File

@@ -141,6 +141,9 @@ create_symlink()
return 1
fi
if [ -f "$dest" ]; then
if [ "$(readlink $dest)" -ef "$src" ]; then
return 0
fi
fmt_warning "\"$dest\" already exists! stat output:"
echo ----------
stat $dest
@@ -154,6 +157,7 @@ create_symlink()
fi
fi
ln -s $src $dest
return $?
}
delete_link_if_match()