wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.3k stars 706 forks source link

Change default behavior to show post-install message #415

Open wting opened 8 years ago

wting commented 8 years ago

People are constantly misusing autojump thinking it's a standalone app when it's meant to be used as autojump <search term>.

This will break backwards compatibility if people are using their own wrapper scripts, but let's change autojump to show the post install message and autojump -s or autojump --search for search.

lil5 commented 6 years ago
$ sudo pacman -S autojump
resolving dependencies...
looking for conflicting packages...

Packages (1) autojump-22.5.1-1

Total Installed Size:  0,17 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing autojump                          [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Manjaro doesn't show a post install message using your standard pacman -S autojump Neither does Debian, if i recall correctly.

$ autojump
Please source the correct autojump file in your shell's
startup file. For more information, please reinstall autojump

Instead of showing a passive-aggressive archy READ THE MANUAL maybe show some links to a helpful guide or the required command.