zsh: fix c alias

This commit is contained in:
Colin 2024-03-09 03:01:37 +00:00
parent e695459b40
commit 9ea39799a5

View File

@ -168,7 +168,7 @@ in
}
function deref() {
# convert a symlink into a plain file of the same content
if [ -L "$1" && -f "$1" ]; then
if [ -L "$1" ] && [ -f "$1" ]; then
cp --dereference "$1" "$1.deref"
mv -f "$1.deref" "$1"
fi