1
0
forked from extern/nix-config
donovanglover-nix-config/dots/common/.config/fish/functions/lab.fish
Donovan Glover 70757528fc
Add other fish functions
This commit adds fish support for the other functions I used to use in
zsh. Since my dotfiles are now separated by environment, it's easy to
see which environment depends on which dotfiles, instead of stowing them
one by one based on software name.
2018-09-07 14:16:13 -04:00

12 lines
324 B
Fish

# 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