forked from extern/nix-config
70757528fc
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.
12 lines
324 B
Fish
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
|