summaryrefslogtreecommitdiff
path: root/dot_local
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2022-02-18 16:44:26 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2022-02-18 16:44:26 -0500
commit667d1c5a27706f01ddd86595d96aa0a9f6797fec (patch)
treef4bd6e61d2dc58767c7c8948a232927b6db7af4b /dot_local
parentadd batdiff (diff)
add fossil-related shortcuts and completions
Diffstat (limited to '')
-rw-r--r--dot_local/bin/executable_fossil-diff2
-rw-r--r--dot_local/bin/executable_fossil-log5
2 files changed, 7 insertions, 0 deletions
diff --git a/dot_local/bin/executable_fossil-diff b/dot_local/bin/executable_fossil-diff
new file mode 100644
index 0000000..f145661
--- /dev/null
+++ b/dot_local/bin/executable_fossil-diff
@@ -0,0 +1,2 @@
+#!/bin/sh
+fossil diff "$@" --command batdiff
diff --git a/dot_local/bin/executable_fossil-log b/dot_local/bin/executable_fossil-log
new file mode 100644
index 0000000..ea922af
--- /dev/null
+++ b/dot_local/bin/executable_fossil-log
@@ -0,0 +1,5 @@
+#!/bin/sh
+YELLOW=$(echo '\x1b[0;33m')
+NORMAL=$(echo '\x1b[0m')
+
+exec fossil timeline -F "${YELLOW}[%h]${NORMAL} %c" "$@"