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