1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 05:50:47 +00:00

Change output dir color form Red to Green for bash

This commit is contained in:
DeepMechatronics 2021-09-03 07:49:22 +05:30 committed by GitHub
parent 06e082c918
commit aa1fa3222c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ j() {
output="$(autojump ${@})" output="$(autojump ${@})"
if [[ -d "${output}" ]]; then if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors 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 else
echo -e "${output}" echo -e "${output}"
fi fi