1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

jump: use more compatible flag for ln (#7205)

The flag '-h' isn't universal across implementation. According to FreeBSD man page for ln you can use 'n'.
This commit is contained in:
Jonatan Skogsfors 2018-10-03 17:30:17 +02:00 committed by Marc Cornellà
parent 47004414a0
commit fe4ac966fa

View file

@ -19,7 +19,7 @@ mark() {
MARK="$1" MARK="$1"
fi fi
if read -q \?"Mark $PWD as ${MARK}? (y/n) "; then if read -q \?"Mark $PWD as ${MARK}? (y/n) "; then
mkdir -p "$MARKPATH"; ln -sfh "$PWD" "$MARKPATH/$MARK" mkdir -p "$MARKPATH"; ln -sfn "$PWD" "$MARKPATH/$MARK"
fi fi
} }