head 1.3; access; symbols AS_CUI_0_6_5:1.2 AS_CUI_0_6_4:1.2 AS_CUI_0_6_3:1.2 AS_CUI_0_6_2:1.2 AS_CUI_0_6_1:1.2 AS_CUI_0_6_0:1.2 AS_CUI_0_5_6:1.2 AS_CUI_0_5_5:1.2 AS_CUI_0_5_4:1.1 AS_CUI_0_5_3:1.1 AS_CUI_0_5_2:1.1 AS_CUI_0_5_1:1.1; locks; strict; comment @# @; 1.3 date 2004.02.17.09.18.15; author thl; state Exp; branches; next 1.2; 1.2 date 2002.12.18.15.58.27; author rse; state Exp; branches; next 1.1; 1.1 date 2002.12.18.11.18.20; author rse; state Exp; branches; next ; desc @@ 1.3 log @correct spelling: privileges, convenient; @ text @## ## AS -- Accounting System ## Copyright (c) 2002 Cable & Wireless Deutschland ## Copyright (c) 2002 Ralf S. Engelschall ## ## This file is part of AS, an accounting system which can be ## found at http://as.is.eu.cw.com/ ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version ## 2.0 of the License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ## USA, or contact The OSSP Project . ## ## as-cui.bashrc: AS command line convenience wrapper for GNU bash ## as_complete () { # determine current context local arg_pos="$COMP_CWORD" local arg_cur="${COMP_WORDS[COMP_CWORD]}" local arg_prev="${COMP_WORDS[COMP_CWORD-1]}" # initialize reply COMPREPLY=() if [ $arg_pos -eq 2 ]; then # complete account name COMPREPLY=($(as-cui --complete=account "$arg_cur")) fi } complete -F as_complete as-cui alias as="as-cui" @ 1.2 log @cosmetics :-) @ text @d24 1 a24 1 ## as-cui.bashrc: AS command line convinience wrapper for GNU bash @ 1.1 log @polish for initial release @ text @d24 1 a24 1 ## as-cui.bashrc: AS CUI wrapper for GNU Bourne Again Shell (BASH) @