summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-08-12 18:15:16 -0400
committerJune McEnroe <june@causal.agency>2021-08-12 18:15:16 -0400
commit8e3eea73f069cdbbc16da14e48a44d610dd07a07 (patch)
tree42348390bad4f4a92d4cd98c3f717a5ab18ef944 /home
parentMake minute adjustments to causal.agency (diff)
downloadsrc-8e3eea73f069cdbbc16da14e48a44d610dd07a07.tar.gz
src-8e3eea73f069cdbbc16da14e48a44d610dd07a07.zip
Add cat alias using less
Idea is that LESS=FRX makes it the same for short files... But less
on OpenBSD behaves weirdly. I'll see.
Diffstat (limited to 'home')
-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=:
DME.7?h=1.6&id=e73328a1fc96ffbee52fe9b231b6293439ea1fd6&follow=1'>Add note about setting PKG_CONFIG_PATHJune McEnroe 2020-02-11Rename query ID on nick changeJune McEnroe 2020-02-11Call completeClear when closing a windowJune McEnroe 2020-02-11Don't insert color codes for non-mentionsJune McEnroe 2020-02-11Take first two words in colorMentionsJune McEnroe 2020-02-11Use time_t for save signatureJune McEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe