added git-clone alias

This commit is contained in:
Marcus Noble 2021-05-16 12:01:32 +01:00
parent b171074349
commit ff544ee43e
3 changed files with 6 additions and 2 deletions

View File

@ -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)"
}

View File

@ -39,6 +39,5 @@
[diff]
compactionHeuristic = true
[url "ssh://git@github.com"]
insteadOf = https://github.com

View File

@ -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; \