blob: 8c7089412bf67d84f83ba3ba63fa2f453f5a3389 (
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
36
|
post_install() {
cat <<EOF
>> To enable command-not-found hook for your shell
>> add any of the following to your .bashrc or .zshrc file
>> depending on the shell you use:
>> for bash:
source /usr/share/doc/find-the-command/ftc.bash
>> for fish:
source /usr/share/doc/find-the-command/ftc.fish
>> for zsh:
source /usr/share/doc/find-the-command/ftc.zsh
>> You can also append 'su' option to use su instead of sudo
>> for root access, 'noprompt' to disable installation
>> prompt at all, or 'quiet' to decrease verbosity, e.g.:
source /usr/share/doc/find-the-command/ftc.zsh noprompt quiet
>> It is necessary to create pacman files database, run
# pacman -Fy
>> You may also want to enable timer for regular
>> pacman files database update:
# systemctl enable pacman-files.timer
EOF
}
post_upgrade() {
post_install
}
pre_remove() {
printf "\t>> Disabling pacman files systemd timer\n"
systemctl disable pacman-files.timer
}
post_remove() {
printf "\t>> Don't forget to remove the hook from your shell rc-file\n"
}
|