summarylogtreecommitdiffstats
path: root/gump.install
blob: 020fedf76c720fa1baddeee0d96e523ec0230040 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
post_install() {
    cat << EOF

==> gump has been installed!

Shell Setup:
------------
Add one of these to your shell config:

Bash (~/.bashrc):
    eval "\$(gump init bash)"

Zsh (~/.zshrc):
    eval "\$(gump init zsh)"

Fish (~/.config/fish/config.fish):
    gump init fish | source

Then restart your shell or source the config file.

Usage:
------
    g foo              # jump to best match for "foo"
    gi foo             # interactive selection with fzf
    foo                # no prefix needed - just type directory name
    g                  # go home
    g -                # go back

Directories are learned automatically as you cd around.

Import existing data:
---------------------
    gump import        # imports from zoxide/autojump/z/fasd

Documentation:
--------------
    /usr/share/doc/gump/README.md

EOF
}

post_upgrade() {
    cat << EOF

==> gump has been upgraded!

If you haven't set up shell integration yet, add to your shell config:

    Bash:  eval "\$(gump init bash)"
    Zsh:   eval "\$(gump init zsh)"
    Fish:  gump init fish | source

EOF
}

post_remove() {
    cat << EOF

==> gump has been removed

Remove the init line from your shell config:
    ~/.bashrc or ~/.zshrc or ~/.config/fish/config.fish

Your gump database is still at:
    ~/.local/share/gump/

To remove database:
    rm -rf ~/.local/share/gump

EOF
}