diff options
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -95,10 +95,13 @@ github_api() { | |||
95 | gcg() { | 95 | gcg() { |
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 | } |
98 | github_release_asset() { | 98 | release() { |
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 | } |
102 | asset() { | ||
103 | curl -LO https://github.com/$1/$2/releases/download/$3/$4 | ||
104 | } | ||
102 | 105 | ||
103 | # tig | 106 | # tig |
104 | alias cdt='cd ~/git/tig' | 107 | alias cdt='cd ~/git/tig' |
@@ -109,8 +112,7 @@ alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2 | |||
109 | upload_tig() { | 112 | upload_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 |