aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias10
1 files changed, 6 insertions, 4 deletions
diff --git a/alias b/alias
index d5da487..81c2a29 100644
--- a/alias
+++ b/alias
@@ -95,10 +95,13 @@ github_api() {
95gcg() { 95gcg() {
96 git clone git@github.com:$1/$2.git && cd $(basename $2) 96 git clone git@github.com:$1/$2.git && cd $(basename $2)
97} 97}
98github_release_asset() { 98release() {
99 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" 99 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"
100 prompt "$command" 100 prompt "$command"
101} 101}
102asset() {
103 curl -LO https://github.com/$1/$2/releases/download/$3/$4
104}
102 105
103# tig 106# tig
104alias cdt='cd ~/git/tig' 107alias cdt='cd ~/git/tig'
@@ -109,8 +112,7 @@ alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2
109upload_tig() { 112upload_tig() {
110 github-release.sh \ 113 github-release.sh \
111 github_api_token=$GITHUB_API_TOKEN \ 114 github_api_token=$GITHUB_API_TOKEN \
112 owner=typebrook \ 115 repo=typebrook/tig \
113 repo=tig \
114 tag=LATEST \ 116 tag=LATEST \
115 filename=$(which tig) 117 filename=$(which tig)
116 overwrite=false 118 overwrite=false