From 1def7fc8885dfad16453671e79f50d202ba34891 Mon Sep 17 00:00:00 2001 From: Laily Date: Wed, 19 Apr 2023 10:57:07 +0800 Subject: [PATCH] fix: add alias --- .zshrc | 5 +++-- git/.gitconfig | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 4c1d9d3..11a7a98 100644 --- a/.zshrc +++ b/.zshrc @@ -116,7 +116,7 @@ export REVIEW_BASE="master" # go export GOPATH=$HOME/go:$HOME/workrepo/go -export PATH=$PATH:$GOPATH/bin +export PATH=$PATH:$HOME/go/bin export GOPROXY=goproxy.cn export GOSUMDB="sum.golang.google.cn" @@ -144,6 +144,7 @@ alias alert='terminal-notifier -title "Terminal" -message "Done with task! Exit alias gitb="git branch --show-current | tr -d '\n' | pbcopy" alias gci="golangci-lint run -c=~/.dotfile/.golangci.yml ./..." alias gmt="go mod tidy" -alias gt="go test -gcflags=all=-l -cover ./..." +alias gtc="go test -gcflags=all=-l -cover ./..." +alias gtr="(){go test -gcflags=all=-l -v -run $1. ;}" alias swg="swag init -o docs -g " alias sws="swagger serve -F=swagger" diff --git a/git/.gitconfig b/git/.gitconfig index 4048c6f..aa23bb7 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -46,4 +46,3 @@ reviewone = !vim -p +\"tabdo Gdiff $REVIEW_BASE\" +\"let g:gitgutter_diff_base = '$REVIEW_BASE'\" #git filter-branch -f --env-filter "GIT_AUTHOR_NAME='Laily'; GIT_AUTHOR_EMAIL='i@laily.net'; GIT_COMMITTER_NAME='Laily'; GIT_COMMITTER_EMAIL='i@laily.net';" HEAD -