From: Andrew Lorimer Date: Mon, 10 Jun 2019 10:27:21 +0000 (+1000) Subject: add tac(1) alias -> bat X-Git-Url: https://git.lorimer.id.au/dotfiles.git/diff_plain/3d62d08813d2d27b86ed2f7e1db99a2ed0ce8165 add tac(1) alias -> bat --- 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 }