summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-04-28 19:08:14 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-04-28 19:08:14 -0700
commitbdea386fc5194860037619b235e60120c4fd4cf8 (patch)
tree728aa1f68d69631784d84a5ecd7766d5fce82699
parent487615c2fd072ee12349601ec4d6ae69583f91e5 (diff)
feat: alias sun, remind output sunrise sunset
-rw-r--r--home/xyz/.bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index cceed28e..028ca3c5 100644
--- a/home/xyz/.bashrc
+++ b/home/xyz/.bashrc
@@ -88,6 +88,11 @@ alias sst='ssh studio'
# \" to consider $HOME contain space, need \ else " will be expanded locally, need \$ else $HOME will expand locally
# can test with: alias mytest='ssh studio for i in \"\$SSH_CONNECTION\"\; do echo \$i\; echo a\; done'
alias sstm='ssh -t -- studio mpra -c \"\$HOME/programs/repos/fly/any/fsh-git\"'
+# can test this mess with `alias tt='echo "\$haha \"lala\""'`
+alias sun='printf "set \$Longitude \"-121.89\"\nset \$Latitude \"37.34\"\n[sunrise()] sunrise\n[sunset()] sunset" | remind -nb1 -'
+# another way:
+# can test this mess with `alias tt="echo '\$haha \"lala\"'"`
+#alias sun="printf 'set \$Longitude \"-121.89\"\nset \$Latitude \"37.34\"\n[sunrise()] sunrise\n[sunset()] sunset' | remind -nb1 -"
alias sv=sudoedit
alias y=systemctl
alias yd='systemctl list-dependencies --all'