aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2025-08-02 20:13:03 +0100
committerJustine Smithies <justine@smithies.me.uk>2025-08-02 20:13:03 +0100
commitc9f60ca3e2b5fcc2597623585989ff99e32bea95 (patch)
treee6421dc620a868ddea39cab60e5b847d31b07750
parentf8cee8f88d8d60fedb66b9c70f5caaadba7eecae (diff)
Fix top alias and use new _exists helper for bat
-rw-r--r--.kshrc4
1 files changed, 2 insertions, 2 deletions
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