|
@@ -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
|