README 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Bash Programmable Completion for Claws Mail
  2. -------------------------------------------
  3. This directory contains a script which provides argument completion
  4. when using Claws Mail from the command line under the bash shell.
  5. This is usually triggered by pressing the tab key (↹).
  6. See bash manual (https://www.gnu.org/software/bash/manual/) for more
  7. details about programmable completion.
  8. Usage
  9. -----
  10. Examples below assume current directory is the toplevel directory of
  11. either an extracted tarball or a git clone.
  12. Single user
  13. ----------
  14. For a single user just make a directory (e.g. '.bash_completion.d')
  15. on your $HOME directory and copy the completion script there:
  16. $ mkdir ~/.bash_completion.d
  17. $ cp tools/bash_completion/claws-mail ~/.bash_completion.d/
  18. Then, source the script to enable it:
  19. $ . ~/.bash_completion.d/claws-mail
  20. To enable it permanently just add the command to the user's bashrc:
  21. $ echo '. ~/.bash_completion.d/claws-mail' >> $HOME/.bashrc
  22. All users
  23. ---------
  24. For system wide installation just copy the file to the system directory,
  25. which is usually located in /etc (you need to become root for that):
  26. $ sudo cp tools/bash_completion/claws-mail /etc/bash_completion.d/
  27. After login in again all users should be able to use completion.