From a8a5d40bfae65d4d2ce9303d4ae73d6047688e85 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 30 Apr 2018 17:53:42 +0000 Subject: [PATCH] only alias ls to exa if exa exists --- home/.zshrc.local | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 64099e1..28356a1 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -155,8 +155,10 @@ alias tearstop="compton --backend=glx" alias apktool="java -jar ~/opt/apktool_2.3.1.jar" alias mpvhdr="mpv --tone-mapping=hable" alias rls="/bin/ls --color=auto" -alias exa="exa --git" -alias ls="exa" +if which exa 2>&1 >> /dev/null;then + alias exa="exa --git" + alias ls="exa" +fi alias presirandr="arandr; feh --bg-fill bg.jpg" ## Environment variables