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

12 lines
236 B
Fish
Raw Normal View History

2013-12-11 01:55:51 +00:00
function jump
2014-01-10 04:30:20 +00:00
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]
2013-12-11 01:55:51 +00:00
else
2014-01-10 04:30:20 +00:00
echo "No such mark: $argv[1]"
2013-12-11 01:55:51 +00:00
end
2014-01-10 04:30:20 +00:00
end
2013-12-11 01:55:51 +00:00
end