c04d1038314875fb02d8a11a85ae85ac014cb506
commit c04d1038314875fb02d8a11a85ae85ac014cb506
Author: Simon Watson <spw01@protonmail.com>
Date: Wed Oct 20 11:43:37 2021 -0400

HN comment view helper

diff --git a/bashrc/bashrc-all b/bashrc/bashrc-all
index 7750473..b9a64ed 100644
--- a/bashrc/bashrc-all
+++ b/bashrc/bashrc-all
@@ -42,6 +42,21 @@ then
fi
export PATH

+# HN Helper functions
+
+# Pull up comments for number
+export HN_PATH=$(which hn)
+hnc() {
+ if [ ! -z "$HN_PATH" ]; then
+ hn view -c $1 | $BAT_PATH
+ else
+ echo "hn not in path"
+ fi
+}
+
+# open submission in browser
+
+
# Case defines platform specific configs
# Platform agnostic configs above
case $(hostname) in