From 3d62d08813d2d27b86ed2f7e1db99a2ed0ce8165 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Mon, 10 Jun 2019 20:27:21 +1000 Subject: [PATCH] add tac(1) alias -> bat --- zsh/.zshrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index d4df296..7a15b2f 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 } -- 2.49.0