From f33da34b47ecb332ab353bd3331971f94f8c72f8 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 30 Jan 2020 16:37:20 +0800 Subject: update --- alias | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'alias') diff --git a/alias b/alias index ec64017..ecfa1ed 100644 --- a/alias +++ b/alias @@ -7,7 +7,7 @@ alias zshrc="vim ~/.zshrc && source ~/.$(basename $SHELL)rc" alias bashrc="vim ~/.bashrc && source ~/.$(basename $SHELL)rc" alias vimrc='vim ~/.vimrc' alias tigrc="vim $SETTING_DIR/tigrc" -alias muttrc="vim ~/.muttrc" +alias muttrc='vim ~/.muttrc' alias gitconfig='vim ~/.gitconfig' alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" @@ -189,10 +189,10 @@ alias sample-osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' alias taiwan='curl -O http://download.geofabrik.de/asia/taiwan-latest.osm.pbf' alias data-rudymap='curl -O https://raw.githubusercontent.com/alpha-rudy/taiwan-topo/master/styles/mapsforge_style/MOI_OSM.xml' alias data-rudymap-ele='curl -O http://moi.kcwu.csie.org/osm_elevations/ele_taiwan_10_50_100_500_marker-2019.7.o5m' -alias data-osm-diff="curl https://planet.openstreetmap.org/replication/minute/state.txt |\ +alias data-osm-diff='curl https://planet.openstreetmap.org/replication/minute/state.txt |\ sed -n 2p | cut -d'=' -f2 | sed -r 's/(.{1})(.{3})/00\1\/\2\//' |\ xargs -I {} echo -e https://planet.openstreetmap.org/replication/minute/'{}'.osc.gz |\ - xargs curl -O" + xargs curl -O' alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' alias data-taiwan-poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' @@ -214,8 +214,8 @@ image_vertical() { alias m='mutt' # misc -alias foo="echo bar > foo && echo File foo is created && ls -lh foo" -alias bar="echo foo > bar && echo File bar is created && ls -lh bar" +alias foo='echo bar > foo && echo File foo is created && ls -lh foo' +alias bar='echo foo > bar && echo File bar is created && ls -lh bar' alias token="cd $SETTING_DIR/tokens && ls -lh" alias gr='_grepString' _grepString() { @@ -227,7 +227,6 @@ alias x='xdg-open' alias f='free -h' alias yl='youtube-dl' alias yla='youtube-dl -x --audio-format mp3' -alias raw='echo "https://raw.githubusercontent.com" | xsel -ib && xsel -ob' alias editor='select-editor' alias hp='http-prompt' alias clocg='cloc --vcs=git' -- cgit v1.2.3-70-g09d2