fix: add alias
This commit is contained in:
@@ -116,7 +116,7 @@ export REVIEW_BASE="master"
|
|||||||
|
|
||||||
# go
|
# go
|
||||||
export GOPATH=$HOME/go:$HOME/workrepo/go
|
export GOPATH=$HOME/go:$HOME/workrepo/go
|
||||||
export PATH=$PATH:$GOPATH/bin
|
export PATH=$PATH:$HOME/go/bin
|
||||||
export GOPROXY=goproxy.cn
|
export GOPROXY=goproxy.cn
|
||||||
export GOSUMDB="sum.golang.google.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 gitb="git branch --show-current | tr -d '\n' | pbcopy"
|
||||||
alias gci="golangci-lint run -c=~/.dotfile/.golangci.yml ./..."
|
alias gci="golangci-lint run -c=~/.dotfile/.golangci.yml ./..."
|
||||||
alias gmt="go mod tidy"
|
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 swg="swag init -o docs -g "
|
||||||
alias sws="swagger serve -F=swagger"
|
alias sws="swagger serve -F=swagger"
|
||||||
|
|||||||
@@ -46,4 +46,3 @@
|
|||||||
reviewone = !vim -p +\"tabdo Gdiff $REVIEW_BASE\" +\"let g:gitgutter_diff_base = '$REVIEW_BASE'\"
|
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
|
#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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user