From 40d22733d364e92e56c59c6871c5da3c2e65f0e7 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 8 Sep 2016 12:01:36 +0200 Subject: [PATCH] Myjump works correctly now --- zsh/config.zsh | 2 +- zsh/oh-my-zsh/plugins/{ => myjump}/myjump.plugin.zsh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename zsh/oh-my-zsh/plugins/{ => myjump}/myjump.plugin.zsh (95%) diff --git a/zsh/config.zsh b/zsh/config.zsh index 45dbc3e..7b9e28a 100644 --- a/zsh/config.zsh +++ b/zsh/config.zsh @@ -16,7 +16,7 @@ DISABLE_AUTO_TITLE="true" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/me # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(git zsh-syntax-highlighting jump) +plugins=(git zsh-syntax-highlighting myjump) source $ZSH/oh-my-zsh.sh diff --git a/zsh/oh-my-zsh/plugins/myjump.plugin.zsh b/zsh/oh-my-zsh/plugins/myjump/myjump.plugin.zsh similarity index 95% rename from zsh/oh-my-zsh/plugins/myjump.plugin.zsh rename to zsh/oh-my-zsh/plugins/myjump/myjump.plugin.zsh index af8c78d..33ae365 100644 --- a/zsh/oh-my-zsh/plugins/myjump.plugin.zsh +++ b/zsh/oh-my-zsh/plugins/myjump/myjump.plugin.zsh @@ -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