From 5044e67ab6dd6c5dd26394f1e005147f3fa733af Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 4 Dec 2022 23:06:37 -0800 Subject: update --- home/xyz/.local/bin/news | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home/xyz/.local/bin/news') diff --git a/home/xyz/.local/bin/news b/home/xyz/.local/bin/news index b45ccba9..5d20752a 100755 --- a/home/xyz/.local/bin/news +++ b/home/xyz/.local/bin/news @@ -1,6 +1,6 @@ #!/bin/sh -o "$BROWSER" github.com/notifications mail.google.com +o "$BROWSER" https://github.com/notifications https://mail.google.com https://archlinuxarm.org/forum/viewforum.php?f=3 # --hold must be before -e # full window: -w156, am and pm in one line: -w114 o alacritty --hold -e rem -cu+2 -@ -w114 -- cgit v1.2.3-70-g09d2 id='cgit'>
summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/dateft
blob: b3174749f8a9c8e85a7cbb4ffe1e8fc2b12fd516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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))