Skip to content

Commit c3f62a6

Browse files
committed
Fix error output when grep shell functions
For the error output "grep: (standard input): binary file matches", we should redirect the error output to /dev/null.
1 parent 23fd139 commit c3f62a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alias-tips.plugin.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _alias_tips__preexec () {
4343
shell_aliases=$(\alias)
4444

4545
local shell_functions
46-
shell_functions=$(\functions | \egrep '^[a-zA-Z].+ \(\) \{$')
46+
shell_functions=$(\functions | \egrep '^[a-zA-Z].+ \(\) \{$' 2> /dev/null)
4747

4848
# Exit code returned from python script when we want to force use of aliases.
4949
local force_exit_code=10

0 commit comments

Comments
 (0)