summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/.shrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/.shrc b/home/.shrc
index 4b0e6c61..605f864e 100644
--- a/home/.shrc
+++ b/home/.shrc
@@ -18,6 +18,14 @@ alias rand='openssl rand -base64 33'
 alias private='eval "$(gpg -d ~/.private)"'
 type doas >/dev/null && alias sudo=doas
 
+cat() {
+	if [ $# -eq 1 ] && test -t 1; then
+		less "$@"
+	else
+		command cat "$@"
+	fi
+}
+
 man() {
 	test $# -ne 1 && { command man "$@"; return $?; }
 	(IFS=: