1
0
forked from extern/nix-config
donovanglover-nix-config/dots/common/.config/fish/functions/lab.fish

12 lines
324 B
Fish
Raw Normal View History

# 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