fish: Remove 'hub' and 'lab' functions

Typing git repositories in the format 'hub' and 'lab' accepted actually
took more time than simply copy/pasting the URL for `git clone`. Sometimes
we didn't even *want* to change our current directory, which made these
functions impractical.

Having to use `git clone` directly helps us remember what we're actually
doing when we clone a repository, and should be preferred over aliases
and other functions that try to do the same.
This commit is contained in:
Donovan Glover 2018-12-01 15:48:17 -05:00
parent 7fc6547a8b
commit d7a0419c2b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 0 additions and 29 deletions

View File

@ -1,18 +0,0 @@
# Easily clone and cd into GitHub repositories
# Usage: hub username/repository [upstream]
function hub --argument-names "path" "upstream"
if test -n "$path"
git clone ssh://git@github.com/$path.git
cd (basename "$path")
if test -n "$upstream"
git remote add upstream \
ssh://git@github.com/$upstream/(basename "$path").git
else
echo "Note: No upstream was specified."
end
else
echo "No repository was specified."
echo "Usage: hub username/repository [upstream]"
end
end

View File

@ -1,11 +0,0 @@
# Easily clone and cd into GitLab repositories
# Usage: lab username/repository
function lab --argument-names "path"
if test -n "$path"
git clone git@gitlab.com:$path.git
cd (basename "$path")
else
echo "No repository was specified."
echo "Usage: lab username/repository"
end
end