diff --git a/.config/zsh/config/profile/profile/functions.zsh b/.config/zsh/config/profile/profile/functions.zsh index bfcca5b..5cb2833 100644 --- a/.config/zsh/config/profile/profile/functions.zsh +++ b/.config/zsh/config/profile/profile/functions.zsh @@ -30,7 +30,7 @@ wgrep() { # This crazy shit handles egde cases of files having colons (:) in them selection=$(rev <<< $selection | cut -d ':' -f 3- | rev) if [[ -n "${selection}" ]]; then - [[ -r "${selection}" ]] && "${EDITOR}" "${selection}" || echo_rgb "Cannot open ${selection}" 255 0 0 80 0 0 + [[ -r "${selection}" ]] && "${EDITOR}" "${selection}" || printf "Cannot open %s\n" "${selection}" fi }