summarylogtreecommitdiffstats
path: root/bash-complete-alias.install
blob: 1440a984f72d2058f6879aec164c4751bc45a78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

post_install() {
  echo
  echo '==> bash-complete-alias installation notes:'
  echo
  echo '    1. Source /usr/share/bash-complete-alias/complete_alias in your bash config (e.g. ~/.bashrc).'
  echo
  echo '    2. For each alias in your bash config, call the complete builtin with _complete_alias and the name of the alias.'
  echo '       For example:'
  echo '         complete -F _complete_alias my_alias'
  echo
  echo '       Alternatively, add the following one-liner after all the aliases are defined:'
  echo '         complete -F _complete_alias "${!BASH_ALIASES[@]}"'
  echo
  echo '==> For more details see /usr/share/doc/bash-complete-alias/README.md'
  echo
}