add tac(1) alias -> bat
authorAndrew Lorimer <andrew@lorimer.id.au>
Mon, 10 Jun 2019 10:27:21 +0000 (20:27 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Mon, 10 Jun 2019 10:27:21 +0000 (20:27 +1000)
zsh/.zshrc
index d4df296c1817ff53572bb8ccbf53d7dc8f47d586..7a15b2f0429bed3cf1bea48877b1384b53f0034a 100755 (executable)
@@ -1,4 +1,3 @@
-# Path to oh-my-zsh installation
 export ZSH=/home/andrew/.oh-my-zsh
 export PATH=~/scripts:$PATH
 export PATH=/home/andrew/.local/bin:$PATH
@@ -36,17 +35,20 @@ HIST_STAMPS="dd.mm.yyyy"
 
 DISABLE_UNTRACKED_FILES_DIRTY="true"
 
+# plugins can be found in ~/.oh-my-zsh/plugins/*
+plugins=(git)
+
 # ---
 # Appearance
 # ---
 ZSH_THEME="custom"
 COMPLETION_WAITING_DOTS="true"
 
-# plugins can be found in ~/.oh-my-zsh/plugins/*
-plugins=(git)
-
 source $ZSH/oh-my-zsh.sh
 
 # fix spotify ui scaling bug
 alias spotify="spotify --force-device-scale-factor=0.95 %U"
+
+# use bat instead of cat
 alias cat="bat"
+tac () { /usr/bin/tac $@ | bat }