oh-my-fish/plugins/jump/jump.fish

12 lines
270 B
Fish
Raw Normal View History

2013-12-11 09:55:51 +08:00
function jump
if test (count $argv) -ne 1
echo "Usage: jump <MARK_NAME>"
else
if test -d $MARKPATH/$argv[1] -a -L $MARKPATH/$argv[1]
cd $MARKPATH/$argv[1]
else
echo "No such mark: $argv[1]"
end
end
end