From bdea386fc5194860037619b235e60120c4fd4cf8 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 28 Apr 2024 19:08:14 -0700 Subject: feat: alias sun, remind output sunrise sunset --- home/xyz/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'home') 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' -- cgit v1.2.3-70-g09d2