summarylogtreecommitdiffstats
path: root/pkgx.install
blob: 7b9396263619760c46689cc5ce9b264c49507226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
post_install() {
  cat << 'EOF'
    Try it out:

        pkgx node@18 --eval 'console.log("pkgx: run anything")'

    Shell integration:

        pkgx integrate --dry-run
        # ^^ https://docs.pkgx.sh/shell-integration
EOF
}

post_upgrade() {
  # New in v1.1.1
  cat << 'EOF'
    Shell integration:

        pkgx integrate --dry-run
        # ^^ https://docs.pkgx.sh/shell-integration
EOF
}

post_remove() {
  cat << 'EOF'
    To clean up pkgx leftovers from your home directory, run:

        pkgx deintegrate
        pkgx unload
        unset -f cd dev env
        rm -rf ~/.pkgx
        rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/pkgx"
        rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}"/pkgx
EOF
}