mirror of
https://github.com/meineerde/dotfiles.git
synced 2025-10-17 19:41:01 +00:00
Colorize with_project error, send all status info to STDERR
This commit is contained in:
parent
97a4b25bb9
commit
810218c09a
4
.bashrc
4
.bashrc
@ -242,10 +242,10 @@ with_project() {
|
||||
local target="$1"
|
||||
[[ -e "$1" ]] || target="$(d "$1")"
|
||||
if [[ -e $target ]]; then
|
||||
echo -e "\033[0;34m${2} ${target}\033[00m"
|
||||
echo -e "\033[0;34m${2} ${target}\033[00m" >&2
|
||||
$2 "$target"
|
||||
else
|
||||
echo "unknown project"
|
||||
echo -e "\033[0;31munknown project\033[00m" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user