set -U fish_user_paths /usr/local/bin $fish_user_paths
Last active
June 14, 2017 09:44
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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