Myjump works correctly now

This commit is contained in:
Thomas FORGIONE
2016-09-08 12:01:36 +02:00
parent effde76eaf
commit 40d22733d3
2 changed files with 3 additions and 3 deletions

View File

@@ -9,8 +9,8 @@
export MARKPATH=$HOME/.marks
jump() {
if [ "$2" == "-p" ]; then
echo "$MARKPATH/$1"
if [[ "$2" == "-p" ]]; then
readlink "$MARKPATH/$1"
else
cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
fi