zsh: deref alias: make the result writable
This commit is contained in:
@@ -172,6 +172,7 @@ in
|
|||||||
cp --dereference "$1" "$1.deref"
|
cp --dereference "$1" "$1.deref"
|
||||||
mv -f "$1.deref" "$1"
|
mv -f "$1.deref" "$1"
|
||||||
fi
|
fi
|
||||||
|
chmod u+w "$1"
|
||||||
}
|
}
|
||||||
function nd() {
|
function nd() {
|
||||||
# enter a directory, creating it if necessary
|
# enter a directory, creating it if necessary
|
||||||
|
Reference in New Issue
Block a user