Skip to main content

Git clone but easier

Project description

lazyclone

Git clone but easier. Built as a replacement/improvement of my project, clode.

Clone a repository without the full URL:

$ lazyclone olillin/lazyclone
Cloning https://github.com/olillin/lazyclone

If GitHub CLI is installed lazyclone will detect your GitHub username:

$ lazyclone bonk
Cloning https://github.com/olillin/bonk

If there are multiple options you will be able to choose which repository to clone:

$ lazyclone lazy
[?] Select repository to clone: 
 > olillin/lazyclone
   LazyVim/LazyVim
   l123456789jy/Lazy
   jesseduffield/lazygit
   jesseduffield/lazydocker
   aFarkas/lazysizes

See Usage for more details.

Installation

Pip

To install using pip simply run the command below:

pip install lazyclone

Nix/NixOS

lazyclone can be installed using Nix Flakes, see the section below.

Nix Flakes

Add the required inputs to your flake configuration:

flake.nix

{
  description = "NixOS configuration with lazyclone";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";

    lazyclone = {
      url = "github:olillin/lazyclone";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = {
    self,
    nixpkgs,
    ...
  } @ inputs: {
    nixosConfigurations.yourconfiguration = nixpkgs.lib.nixosSystem {
      specialArgs = {inherit inputs;};
      modules = [
        ./configuration.nix
      ];
    };
  };
}

Install the package in your configuration.nix or an imported module:

configuration.nix

{
  pkgs,
  inputs,
  ...
}: {
  environment.systemPackages = with pkgs; [
    inputs.lazyclone.packages.${pkgs.stdenv.hostPlatform.system}.default
  ];
}

Usage

Arguments

Argument Type Description Example value
repo string Name or query of the repository to clone olillin/lazyclone
directory string Directory the repository should be cloned to lazyclone-2
-h/--help flag Show the help menu
-p/--program string Program to open the cloned repository with code
--debug flag Enable debug logs

Help message

usage: lazyclone [-h] [-p PROGRAM] [--debug] repo [directory]

Clone Git repositories easier

positional arguments:
  repo                  url or name of repository to clone
  directory             the name of a new directory to clone into

options:
  -h, --help            show this help message and exit
  -p, --program PROGRAM
                        open with this program after cloning
  --debug               enable debugging output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazyclone-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazyclone-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file lazyclone-0.1.0.tar.gz.

File metadata

  • Download URL: lazyclone-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lazyclone-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e8e6173d93d8a0e59272d83073f8a5f8d673a6868238098ae337447692dcc97
MD5 c06f87ef2b38063bd97839203e499811
BLAKE2b-256 54981deacaa4eb314af405a6efe7b846af2ae73f96584d44d8d244c7fad8258c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazyclone-0.1.0.tar.gz:

Publisher: python-publish.yml on olillin/lazyclone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lazyclone-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lazyclone-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lazyclone-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f60c11dd9f144569756d96557d538649905573c6e522d57902d1cc9c4fad9041
MD5 202f280a7f741342405ed7fcc99e87f4
BLAKE2b-256 4b0887e4e46e2f63d8fe64d048de4d0e9fd751bc30e3588a03c811a013b76198

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazyclone-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on olillin/lazyclone

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page