mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
19 lines
423 B
Fish
19 lines
423 B
Fish
# @halostatue/fish-macos/functions/__macos_finder_cd.fish:v7.0.1
|
|
|
|
function __macos_finder_cd
|
|
argparse --name 'finder cd' h/help -- $argv
|
|
or return 1
|
|
|
|
if set --query _flag_help
|
|
echo 'Usage: finder cd [options] [window#]
|
|
|
|
Changes the current path to the path of the Finder window.
|
|
|
|
Options:
|
|
-h, --help Show this help'
|
|
return 0
|
|
end
|
|
|
|
cd (__macos_finder_pwd::get $argv[1])
|
|
end
|