From 276e38820e08a69e2776646d457c3a8f97eec1ef Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Wed, 3 Jul 2024 19:25:17 -0400 Subject: refactor: `echo`, `printf`, and `cat` aliases --- .config/shell/.zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.config/shell') diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index 24871e8..ad21fef 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -18,20 +18,24 @@ SAVEHIST=9999999 # personal aliases alias c="cal" alias d="disown" - alias echo="command echo" + alias dots="cd ~/.local/share/.dotfiles/" + alias echo="$(command which echo)" alias egrep='grep -E' alias fgrep='grep -F' alias grep='grep --colour=auto' alias ls="ls --group-directories-first -h -p --color -F" alias neofetch="alsi" alias p="paru" - alias printf="command printf" + alias printf="$(command which printf)" alias pu="paru -Syu --noconfirm" alias s="cd ~/.local/bin && ls" alias t="timedatectl" alias w="curl wttr.in" alias x="startx" + # conditionally alias cat to bat -p if bat is installed + command which bat >/dev/null 2>&1 && alias cat="bat -p" + # youtube-dl aliases alias yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'" alias yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'" -- cgit v1.2.3