Update 2024-12-31 10:47 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-31 10:47:38 +01:00
parent 9ffce7022e
commit 9f55042b33
23 changed files with 369 additions and 499 deletions

35
.vim/bin/findtagsdir Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
gitdir() {
_path="$PWD"
while [ -n "$_path" ]
do [ -d "$_path/.git" ] \
&& echo "$_path" \
&& break
_path="${_path%/*}"
done
}
cvsdir() {
_path="$PWD"
while [ -n "$_path" ]
do
[ ! -d "$_path/../CVS" ] \
&& echo "$_path" \
&& break
_path="${_path%/*}"
done
}
_gitdir="$(gitdir)"
_cvsdir="$(cvsdir)"
if [ -n "$_gitdir" ]
then
echo "$_gitdir/.git"
elif [ -n "$_cvsdir" ]
then
echo "$_cvsdir/.tags"
else
echo "$PWD/.tags"
fi