dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit e849df54459a12b2552ebb58bd71d86fc756a975
parent 1af6b74af6a02347071133c3301e100baf3b2909
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 17 Nov 2020 09:30:01 +0100

.profile: fix file handling in recursive call of ctags(1)

Diffstat:
M.profile | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/.profile b/.profile @@ -181,13 +181,11 @@ alias julia-fast='julia --procs 1 --optimize=3 --math-mode=fast' # .[cfh] are POSIX, the rest is implementation specific ctags_recurse() { - f="$(mktemp)" - find ${1:-.} -type f \ - -iname '*.c' -o -iname '*.h' -o -iname '*.f' -o \ - -iname '*.cc' -o -iname '*.cxx' -o -iname '*.cpp' -o \ - -iname '*.hh' -o -iname '*.hxx' -o -iname '*.hpp' > "$f" - rm -f tags - while read -r; do ctags -a "$REPLY"; done < "$f" + find ${1:-.} -type f \( \ + -iname '*.c' -o -iname '*.h' -o -iname '*.f' -o \ + -iname '*.cc' -o -iname '*.cxx' -o -iname '*.cpp' -o \ + -iname '*.hh' -o -iname '*.hxx' -o -iname '*.hpp' \ + \) -print0 | xargs -0 ctags } ot() {