summarylogtreecommitdiffstats
path: root/pkgx.install
blob: b07d7112c612750ff666ef8c40fd90e27b4cbd03 (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
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_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
}