diff options
author | typebrook <typebrook@gmail.com> | 2019-10-21 14:05:19 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-10-21 14:05:19 +0800 |
commit | 1a2a2011908aae95b9ed444171a0fc1815737eeb (patch) | |
tree | bf6fdaf623541b78675ddc0428ede9620b789815 | |
parent | d62187b6792bbd150db1effb72047157e17bd640 (diff) |
update
-rw-r--r-- | alias | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -152,12 +152,18 @@ alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan- | |||
152 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' | 152 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' |
153 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' | 153 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' |
154 | 154 | ||
155 | # xsel | 155 | # clipboard |
156 | alias xi='xsel -ib' | 156 | alias xi='xsel -ib' |
157 | alias xo='xsel -ob' | 157 | alias xo='xsel -ob' |
158 | alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied the following: && xsel -ob ' | 158 | alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied the following: && xsel -ob ' |
159 | alias xc='xsel -ob | gcc -xc -' | 159 | alias xc='xsel -ob | gcc -xc -' |
160 | 160 | ||
161 | # image | ||
162 | alias image-vertical='_convert' | ||
163 | _convert() { | ||
164 | convert $@ -append output.png | ||
165 | } | ||
166 | |||
161 | # misc | 167 | # misc |
162 | alias gr='_grepString' | 168 | alias gr='_grepString' |
163 | _grepString() { | 169 | _grepString() { |