From 289cdb434053c1c63d0f2c34935375bb3e5e24f7 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 11 Mar 2020 10:47:48 +0800 Subject: update --- alias | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'alias') diff --git a/alias b/alias index d5da487..81c2a29 100644 --- a/alias +++ b/alias @@ -95,10 +95,13 @@ github_api() { gcg() { git clone git@github.com:$1/$2.git && cd $(basename $2) } -github_release_asset() { - command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n owner=typebrook\n repo=tig\n tag=LATEST\n type=asset\n filename=$(which tig)\n overwrite=false" +release() { + command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n repo=typebrook/tig\n tag=LATEST\n type=asset\n filename=$(which tig)\n overwrite=false" prompt "$command" } +asset() { + curl -LO https://github.com/$1/$2/releases/download/$3/$4 +} # tig alias cdt='cd ~/git/tig' @@ -109,8 +112,7 @@ alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2 upload_tig() { github-release.sh \ github_api_token=$GITHUB_API_TOKEN \ - owner=typebrook \ - repo=tig \ + repo=typebrook/tig \ tag=LATEST \ filename=$(which tig) overwrite=false -- cgit v1.2.3-70-g09d2