Use default names in macOS for GNU ctags, find, grep and sed
dblume

dblume commited on 2022-12-14 10:55:08
Showing 1 changed files, with 5 additions and 0 deletions.

... ...
@@ -11,4 +11,9 @@ if [[ $(uname -s) == Darwin* ]]; then
11 11
         # brew install bash-completion (for $CDPATH completion)
12 12
         source $(brew --prefix)/etc/bash_completion
13 13
     fi
14
+    if [[ -f $(brew --prefix)/bin/ctags ]]; then
15
+        alias ctags="$(brew --prefix)/bin/ctags"
16
+    fi
17
+    # Set default names for GNU grep, sed and find
18
+    PATH="/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:$PATH"
14 19
 fi
15 20