We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4b671d + 30b2aec commit 2040e57Copy full SHA for 2040e57
geometry.zsh
@@ -51,7 +51,7 @@ PROMPT_GEOMETRY_COLORIZE_SYMBOL=${PROMPT_GEOMETRY_COLORIZE_SYMBOL:-false}
51
PROMPT_GEOMETRY_COLORIZE_ROOT=${PROMPT_GEOMETRY_COLORIZE_ROOT:-false}
52
53
# Use ag if possible
54
-GREP=$(which ag &> /dev/null && echo "ag" || echo "grep")
+GREP=$(command -v ag >/dev/null 2>&1 && echo "ag" || echo "grep")
55
56
prompt_geometry_git_time_since_commit() {
57
if [[ $(git log -1 2>&1 > /dev/null | grep -c "^fatal: bad default revision") == 0 ]]; then
0 commit comments