From ff544ee43e819543cd6e7cce9c08fce27bbb4878 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 16 May 2021 12:01:32 +0100 Subject: [PATCH] added git-clone alias --- .dotfiles/aliases | 5 +++++ .gitconfig | 1 - Makefile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.dotfiles/aliases b/.dotfiles/aliases index 04b5373..26ee17a 100644 --- a/.dotfiles/aliases +++ b/.dotfiles/aliases @@ -16,3 +16,8 @@ lt() { } alias aws='docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws -e AWS_PROFILE -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY amazon/aws-cli' alias doggo='docker run --rm -it ghcr.io/mr-karan/doggo:latest' + +git-clone() { + git clone $1 + cd "$(basename "$1" .git)" +} diff --git a/.gitconfig b/.gitconfig index eba1e12..5b44193 100644 --- a/.gitconfig +++ b/.gitconfig @@ -39,6 +39,5 @@ [diff] compactionHeuristic = true - [url "ssh://git@github.com"] insteadOf = https://github.com diff --git a/Makefile b/Makefile index 4251bfd..00c9c94 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ upgrade: ## Upgrade all required binaries. .PHONY: dotfiles dotfiles: ## Installs the dotfiles. - GITEMAIL=$$(git config --get user.email); \ + @GITEMAIL=$$(git config --get user.email); \ for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".config" -not -name ".k9s" -not -name ".github" -not -name ".*.swp" -not -name ".gnupg"); do \ f=$$(basename $$file); \ ln -sfn $$file $(HOME)/$$f; \