summaryrefslogtreecommitdiff
path: root/dot_zsh/plugins/bat
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-08-29 13:33:12 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2020-08-29 13:34:22 -0400
commit8e28344e223068d0440a5e87fc285b68a449f672 (patch)
treec3479b8eb645e26173601fffaaf7e5a7268ee45f /dot_zsh/plugins/bat
parent[zsh] add shar aliases and some envvars (diff)
zsh: nicer environment stuff
uses systemd's environment.d I'm thinking it makes sense to port it to other systems, though especially given pam_env is disabled by default now
Diffstat (limited to '')
-rw-r--r--dot_zsh/plugins/bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/dot_zsh/plugins/bat b/dot_zsh/plugins/bat
new file mode 100644
index 0000000..9d542ab
--- /dev/null
+++ b/dot_zsh/plugins/bat
@@ -0,0 +1,4 @@
+#!/bin/zsh
+(( $+commands[bat] )) || return
+
+alias cat=bat pcat='bat -p'