mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-15 12:54:15 +01:00
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:
parent
7fc6547a8b
commit
d7a0419c2b
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user