Skip to content

Instantly share code, notes, and snippets.

@vnys
Last active June 14, 2017 09:44
Show Gist options
  • Save vnys/5d1d4b224b4bd39b4b473030f20a9e60 to your computer and use it in GitHub Desktop.
Save vnys/5d1d4b224b4bd39b4b473030f20a9e60 to your computer and use it in GitHub Desktop.
Fish function for cloning from a Github repo. Usage: gc batfink/foo or gc batfink/foo bar (clones foo into bar)

set -U fish_user_paths /usr/local/bin $fish_user_paths

function gc
set cmd git clone [email protected]:$argv[1]
if test (count $argv) -gt 1
eval $cmd $argv[2..-1]
else
eval $cmd
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment