Myjump works correctly now
This commit is contained in:
parent
effde76eaf
commit
40d22733d3
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue