mainly new feature to intentionally delay sending email
[distro-setup] / brc
diff --git a/brc b/brc
index b78e08ff865d1779f3a3065dadb483f4496821c7..4e02122cccc6f72ae3d3acf9b882783b692ec455 100644 (file)
--- a/brc
+++ b/brc
@@ -712,7 +712,7 @@ for field in {1..20}; do
 done
 # h1 = head -n1
 for num in {1..9}; do
-  eval h$num"() { head -n$num; }"
+  eval h$num"() { head -n$num || [[ \$? == 141 ]]; }"
 done
 
 
@@ -1590,6 +1590,8 @@ pst() {
   pstree -apnA
 }
 
+# journalctl with times in the format the --since= and --until= options accept
+jrt() { journalctl -e -n100000 -o short-full "$@"; }
 jr() { journalctl -e -n100000 "$@" ; }
 jrf() { journalctl -n1000 -f "$@" ; }
 jru() {
@@ -1754,6 +1756,14 @@ nags() {
   fi
   /usr/bin/nagstamon &
 }
+prof() {
+  if ! pgrep -f /usr/lib/notification-daemon/notification-daemon >/dev/null; then
+    /usr/lib/notification-daemon/notification-daemon &
+  fi
+  profanity "$@"
+}
+
+
 
 nmt() {
   # cant use s because sudo -i doesnt work for passwordless sudo command