diff options
-rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -366,6 +366,7 @@ alias cdtrash='cd ~/.local/share/Trash' | |||
366 | trash() { | 366 | trash() { |
367 | mv $@ ~/.local/share/Trash | 367 | mv $@ ~/.local/share/Trash |
368 | } | 368 | } |
369 | transfer(){ 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 |
371 | alias tk='task' | 372 | alias tk='task' |
@@ -395,11 +396,11 @@ alias pgc='pass generate -c' | |||
395 | # tmp | 396 | # tmp |
396 | alias and='cd ~/git/geoBingAn.Android' | 397 | alias and='cd ~/git/geoBingAn.Android' |
397 | alias cdS='cd ~/git/StreetComplete' | 398 | alias cdS='cd ~/git/StreetComplete' |
398 | alias cdT='cd ~/git/taiwan-topo' | ||
399 | alias cdand='cd ~/git/sample' | 399 | alias cdand='cd ~/git/sample' |
400 | alias cdm='cd ~/git/mapstew' | 400 | alias cdm='cd ~/git/mapstew' |
401 | alias cdma='cd ~/git/mapstew-android' | 401 | alias cdma='cd ~/git/mapstew-android' |
402 | alias cdT='cd ~/git/tilemaker' | 402 | alias cdT='cd ~/git/tilemaker' |
403 | alias cdtt='cd ~/git/template' | ||
403 | alias cdngx='cd /etc/nginx' | 404 | alias cdngx='cd /etc/nginx' |
404 | alias stew='cd ~/git/mapstew' | 405 | alias stew='cd ~/git/mapstew' |
405 | 406 | ||