File: setup

package info (click to toggle)
libgedcom-perl 1.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 828 kB
  • sloc: perl: 7,883; sh: 102; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# . ./utils/setup

tidy () { echo -n "$1" | perl -naF: -e 'print join ":", grep !$s{$_}++ && -e, @F'; }
gedcom_home=$PWD
PATH=$(tidy "$gedcom_home/utils:$PATH")
export PATH

if [ ! -z "$ZSH_VERSION" ]; then
    _dev() {
        # shellcheck disable=SC2034
        # shellcheck disable=SC2207
        reply=($(utils/dev options))
    }
    compctl -K _dev dev
fi