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 a4c7ba67baf1f4407811f75392958fcc49bc40ad
parent 157b503e1d2327ba474aa906e1420d053cb93620
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 18 Nov 2020 10:25:44 +0100

put ctags_recurse into separate script so it can be called from vi(1)

Diffstat:
A.local/bin/ctags_recurse | 8++++++++
M.profile | 9---------
2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/.local/bin/ctags_recurse b/.local/bin/ctags_recurse @@ -0,0 +1,8 @@ +#!/bin/sh + +# .[cfh] are POSIX, the rest is implementation specific +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 diff --git a/.profile b/.profile @@ -179,15 +179,6 @@ video_screenshot() { alias julia-fast='julia --procs 1 --optimize=3 --math-mode=fast' -# .[cfh] are POSIX, the rest is implementation specific -ctags_recurse() { - 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() { d="${1:-.}" if ! test -r "${d}/tags"; then