@@ -228,13 +228,13 @@ __has_command tmux && alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf" if ! __has_command colordiff; then colordiff() { - red="$(tput setaf 1)" - green="$(tput setaf 2)" - reset="$(tput sgr0)" + local red=$(printf "\033[31m") + local green=$(printf "\033[32m") + local reset=$(printf "\033[0m") sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/" } fi if __has_command fossil; then