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/*)
|
||||
# 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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue