Browse code

Add dotfiles

Robert Cranston authored on 19/11/2023 01:25:55
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+# Columnize `apt-cache search` results.
2
+alias apt-cache='__apt_cache'
3
+__apt_cache()
4
+{
5
+  case "$1" in
6
+    search) command apt-cache "$@" | sed 's/ - /\t/' | column -t -s "$(printf '\t')" ;;
7
+    *)      command apt-cache "$@" ;;
8
+  esac
9
+}