From b90ede5b3626bd1ce99588307a4de564e28721b3 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Tue, 3 Jun 2025 13:47:14 -0400 Subject: [PATCH] fix todo-txt alias on macos - completion works again --- .aliases | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.aliases b/.aliases index f9f5fdd..9692fcc 100644 --- a/.aliases +++ b/.aliases @@ -1,7 +1,5 @@ # ~/.aliases -TODO_BIN=$(which todo.sh) - alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' @@ -32,13 +30,22 @@ alias rd='rmdir' alias rm='rm -i' alias df='duf -hide special' alias rmhost='ssh-keygen -f ~/.ssh/known_hosts -R' +alias ssha='eval $(ssh-agent) && ssh-add' # command replacements alias cat='bat --paging=never --style=plain' alias pcat='bat --paging=auto --style=auto' # todo.txt -alias t='$TODO_BIN -a' +case $(uname -s) in + Darwin) + alias t='/opt/homebrew/bin/todo.sh -a' + ;; + *) + TODO_BIN='$(which todo.sh)' + alias t='$TODO_BIN -a' + ;; +esac # Arch alias yay='nocorrect yay --color=auto'