On 19 November 2012 at 11:16, Nicola Chiapolini wrote:
| Package: beancounter
| Version: 0.8.10
| Severity: wishlist
| Tags: upstream patch
| 
| Dear Maintainer,
| 
| Beancounter is a lot easier to use with bash-completion. Attached is a
| simple file providing this.

That's handy. Thanks. 

Not quite sure where my upstream Perl sources would pack this though.

Dirk
 
| cheers
| Nicola
| 
| -- System Information:
| Debian Release: wheezy/sid
|   APT prefers testing
|   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
| Architecture: amd64 (x86_64)
| 
| Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
| Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
| Shell: /bin/sh linked to /bin/dash
| 
| Versions of packages beancounter depends on:
| ii  libdate-manip-perl              6.32-1
| ii  libdbd-pg-perl                  2.19.2-2
| ii  libdbd-sqlite3-perl             1.37-1
| ii  libdbi-perl                     1.622-1
| ii  libfinance-yahooquote-perl      0.24
| ii  libstatistics-descriptive-perl  3.0603-1
| ii  perl                            5.14.2-15
| ii  sqlite3                         3.7.13-1
| 
| beancounter recommends no packages.
| 
| beancounter suggests no packages.
| 
| -- no debconf information
| 
| -- debsums errors found:
| debsums: changed file /usr/bin/beancounter (from beancounter package)
| 
| ----------------------------------------------------------------------
| # elementary bash-completion for beancounter
| # copy this file to /etc/bash_completion.d/beancounter
| # 2012-11-19, [email protected] 
| 
| _beancounter()
| {
|     local cur prev comm opts 
|     COMPREPLY=()
|     cur="${COMP_WORDS[COMP_CWORD]}"
|     prev="${COMP_WORDS[COMP_CWORD-1]}"
|     comm="addindex addportfolio allreports addstock advancement"
|     comm="$comm backpopulate checkdbconnection dailyjob dayendreport"
|     comm="$comm deactivate delete destroydb fxbackpopulate lsportfolio"
|     comm="$comm plreport quote retracement risk split status update"
|     comm="$comm warranty lspositions"
|     opts="--help --verbose --date --prevdate --currency --restriction"
|     opts="$opts --extrafx --forceupdate --rcfile --fxupdate --commit"
|     opts="$opts --equityupdate --ubcfx --nofxupdate --nocommit"
|     opts="$opts --noequityupdate --noubcfx --splitby --dbsystem --dbname"
| 
|     if [[ ${cur} == -* ]] ; then
|         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|         return 0
|     else
|         COMPREPLY=( $(compgen -W "${comm}" -- ${cur}) )
|         return 0
|     fi
| }
| complete -F _beancounter beancounter
| 

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com  


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to