From c9f60ca3e2b5fcc2597623585989ff99e32bea95 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 2 Aug 2025 20:13:03 +0100 Subject: Fix top alias and use new _exists helper for bat --- .kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.kshrc') diff --git a/.kshrc b/.kshrc index 3d2864f..b87f847 100644 --- a/.kshrc +++ b/.kshrc @@ -24,11 +24,11 @@ HISTCONTROL=ignoredups:ignorespace # Some useful aliases # If btop is installed then alias top to btop -_exists && alias top="/usr/local/bin/btop" +_exists btop && alias top="/usr/local/bin/btop" alias ls='ls --color=auto -hv' alias config='/usr/local/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' -command -v bat > /dev/null && alias cat='bat --paging=never' +_exists bat && alias cat='bat' alias wanip='dig @resolver4.opendns.com myip.opendns.com +short' # Alias to stop foot terminal confusing ssh -- cgit v1.2.3