1
0
mirror of https://github.com/wting/autojump synced 2025-06-09 10:54:06 +00:00
This commit is contained in:
Deep Patel 2025-03-07 11:35:49 -05:00 committed by GitHub
commit c1027d0acf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ j() {
output="$(autojump ${@})"
if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m"
echo -e "\\033[32m${output}\\033[0m"
else
echo -e "${output}"
fi