Commit d3e005d6 authored by Jeroen Janssens's avatar Jeroen Janssens
Browse files

Fix aliasing pwd

parent 255b0c4f
...@@ -13,14 +13,13 @@ jump() { ...@@ -13,14 +13,13 @@ jump() {
} }
mark() { mark() {
DIR="$(pwd)"
if (( $# == 0 )); then if (( $# == 0 )); then
MARK=$(basename $DIR) MARK=$(basename "$(pwd)")
else else
MARK=$1 MARK="$1"
fi fi
if read -q \?"Mark ${DIR} as ${MARK}? (y/n) "; then if read -q \?"Mark $(pwd) as ${MARK}? (y/n) "; then
mkdir -p "$MARKPATH"; ln -s "${DIR}" "$MARKPATH/$MARK" mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$MARK"
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment