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

@ -16,7 +16,7 @@ DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # 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 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/me
# Example format: plugins=(rails git textmate ruby lighthouse) # 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 source $ZSH/oh-my-zsh.sh

View File

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