aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias3
1 files changed, 2 insertions, 1 deletions
diff --git a/alias b/alias
index bdf3793..535b4e1 100644
--- a/alias
+++ b/alias
@@ -366,6 +366,7 @@ alias cdtrash='cd ~/.local/share/Trash'
366trash() { 366trash() {
367 mv $@ ~/.local/share/Trash 367 mv $@ ~/.local/share/Trash
368} 368}
369transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null;fi;}
369 370
370# task 371# task
371alias tk='task' 372alias tk='task'
@@ -395,11 +396,11 @@ alias pgc='pass generate -c'
395# tmp 396# tmp
396alias and='cd ~/git/geoBingAn.Android' 397alias and='cd ~/git/geoBingAn.Android'
397alias cdS='cd ~/git/StreetComplete' 398alias cdS='cd ~/git/StreetComplete'
398alias cdT='cd ~/git/taiwan-topo'
399alias cdand='cd ~/git/sample' 399alias cdand='cd ~/git/sample'
400alias cdm='cd ~/git/mapstew' 400alias cdm='cd ~/git/mapstew'
401alias cdma='cd ~/git/mapstew-android' 401alias cdma='cd ~/git/mapstew-android'
402alias cdT='cd ~/git/tilemaker' 402alias cdT='cd ~/git/tilemaker'
403alias cdtt='cd ~/git/template'
403alias cdngx='cd /etc/nginx' 404alias cdngx='cd /etc/nginx'
404alias stew='cd ~/git/mapstew' 405alias stew='cd ~/git/mapstew'
405 406