added git-clone alias
This commit is contained in:
parent
a1b136155b
commit
17e691cf96
@ -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 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'
|
alias doggo='docker run --rm -it ghcr.io/mr-karan/doggo:latest'
|
||||||
|
|
||||||
|
git-clone() {
|
||||||
|
git clone $1
|
||||||
|
cd "$(basename "$1" .git)"
|
||||||
|
}
|
||||||
|
@ -39,6 +39,5 @@
|
|||||||
[diff]
|
[diff]
|
||||||
compactionHeuristic = true
|
compactionHeuristic = true
|
||||||
|
|
||||||
|
|
||||||
[url "ssh://git@github.com"]
|
[url "ssh://git@github.com"]
|
||||||
insteadOf = https://github.com
|
insteadOf = https://github.com
|
||||||
|
2
Makefile
2
Makefile
@ -47,7 +47,7 @@ upgrade: ## Upgrade all required binaries.
|
|||||||
|
|
||||||
.PHONY: dotfiles
|
.PHONY: dotfiles
|
||||||
dotfiles: ## Installs the 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 \
|
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); \
|
f=$$(basename $$file); \
|
||||||
ln -sfn $$file $(HOME)/$$f; \
|
ln -sfn $$file $(HOME)/$$f; \
|
||||||
|
Loading…
Reference in New Issue
Block a user