mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 01:39:43 +08:00
12 lines
236 B
Fish
12 lines
236 B
Fish
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
|