diff options
author | typebrook <typebrook@gmail.com> | 2020-01-30 16:37:20 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-30 16:37:20 +0800 |
commit | f33da34b47ecb332ab353bd3331971f94f8c72f8 (patch) | |
tree | 44d6f00fc3d13db66d16ac8f7f07a2802244056d /alias | |
parent | e1d87789d2be3cca67f87b77a76821089eb67c5b (diff) |
update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -7,7 +7,7 @@ alias zshrc="vim ~/.zshrc && source ~/.$(basename $SHELL)rc" | |||
7 | alias bashrc="vim ~/.bashrc && source ~/.$(basename $SHELL)rc" | 7 | alias bashrc="vim ~/.bashrc && source ~/.$(basename $SHELL)rc" |
8 | alias vimrc='vim ~/.vimrc' | 8 | alias vimrc='vim ~/.vimrc' |
9 | alias tigrc="vim $SETTING_DIR/tigrc" | 9 | alias tigrc="vim $SETTING_DIR/tigrc" |
10 | alias muttrc="vim ~/.muttrc" | 10 | alias muttrc='vim ~/.muttrc' |
11 | alias gitconfig='vim ~/.gitconfig' | 11 | alias gitconfig='vim ~/.gitconfig' |
12 | alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" | 12 | alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" |
13 | 13 | ||
@@ -189,10 +189,10 @@ alias sample-osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' | |||
189 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' | 189 | alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' |
190 | alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' | 190 | alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' |
191 | alias data-rudymap-ele='curl -O http://moi.kcwu.csie.org/osm_elevations/ele_taiwan_10_50_100_500_marker-2019.7.o5m' | 191 | alias data-rudymap-ele='curl -O http://moi.kcwu.csie.org/osm_elevations/ele_taiwan_10_50_100_500_marker-2019.7.o5m' |
192 | alias data-osm-diff="curl https://planet.openstreetmap.org/replication/minute/state.txt |\ | 192 | alias data-osm-diff='curl https://planet.openstreetmap.org/replication/minute/state.txt |\ |
193 | sed -n 2p | cut -d'=' -f2 | sed -r 's/(.{1})(.{3})/00\1\/\2\//' |\ | 193 | sed -n 2p | cut -d'=' -f2 | sed -r 's/(.{1})(.{3})/00\1\/\2\//' |\ |
194 | xargs -I {} echo -e https://planet.openstreetmap.org/replication/minute/'{}'.osc.gz |\ | 194 | xargs -I {} echo -e https://planet.openstreetmap.org/replication/minute/'{}'.osc.gz |\ |
195 | xargs curl -O" | 195 | xargs curl -O' |
196 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' | 196 | alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' |
197 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' | 197 | alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' |
198 | alias data-taiwan-poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' | 198 | alias data-taiwan-poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' |
@@ -214,8 +214,8 @@ image_vertical() { | |||
214 | alias m='mutt' | 214 | alias m='mutt' |
215 | 215 | ||
216 | # misc | 216 | # misc |
217 | alias foo="echo bar > foo && echo File foo is created && ls -lh foo" | 217 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' |
218 | alias bar="echo foo > bar && echo File bar is created && ls -lh bar" | 218 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' |
219 | alias token="cd $SETTING_DIR/tokens && ls -lh" | 219 | alias token="cd $SETTING_DIR/tokens && ls -lh" |
220 | alias gr='_grepString' | 220 | alias gr='_grepString' |
221 | _grepString() { | 221 | _grepString() { |
@@ -227,7 +227,6 @@ alias x='xdg-open' | |||
227 | alias f='free -h' | 227 | alias f='free -h' |
228 | alias yl='youtube-dl' | 228 | alias yl='youtube-dl' |
229 | alias yla='youtube-dl -x --audio-format mp3' | 229 | alias yla='youtube-dl -x --audio-format mp3' |
230 | alias raw='echo "https://raw.githubusercontent.com" | xsel -ib && xsel -ob' | ||
231 | alias editor='select-editor' | 230 | alias editor='select-editor' |
232 | alias hp='http-prompt' | 231 | alias hp='http-prompt' |
233 | alias clocg='cloc --vcs=git' | 232 | alias clocg='cloc --vcs=git' |