mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Fix aliasing pwd
This commit is contained in:
parent
255b0c4f5e
commit
d3e005d6b4
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue