From 3cccb61089da8a60f97f0284e2d96f6e49a79855 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Wed, 18 Aug 2021 09:30:21 +0300 Subject: [PATCH] Alias ls and cat to exa and bat --- home/.config/zsh/03-aliases.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home/.config/zsh/03-aliases.zsh b/home/.config/zsh/03-aliases.zsh index 4e50065..0e8a40f 100644 --- a/home/.config/zsh/03-aliases.zsh +++ b/home/.config/zsh/03-aliases.zsh @@ -21,6 +21,10 @@ _fzf_compgen_path() { _skim_compgen_path } +# Modern replacements for cat and ls +alias cat='bat' +alias ls='exa' + {%@@ if profile != "mko-laptop" @@%} # Command not found handler # source https://wiki.archlinux.org/title/Zsh#pacman_-F_%22command_not_found%22_handler @@ -224,9 +228,6 @@ tether() { adb shell su -c "service call connectivity 33 i32 1 s16 me" > /dev/nu # update arch mirrorlist alias reflect='sudo reflector --latest 200 --threads 8 --verbose --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist' -# better ls -alias ls='ls_extended -Ih' - # default icon for notify-send alias notify-send='notify-send --icon=alarm'