summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/vinfo
blob: 190de192aff7e0a670b9e503d1c8bdf45d2a80a7 (plain)
1
2
3
4
#!/bin/sh

# steal from https://github.com/HiPhish/info.vim
"$EDITOR" -RM +"Info $1 $2" +only
#!/bin/sh # DATE From To while getopts cfF:t:T: opt; do case $opt in c) tz_from="Asia/Shanghai";; f) tz_from="$(tzselect)";; F) tz_from="$OPTARG";; # one extra ',' at the end will not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))