Post your fish-shell tab completion scripts here

Fish shell is not really active nowadays, tab completion scripts are aging and many are missing. Let's fill the gap by collecting our autocompletion scripts here. I start first with a patch to pacman.fish:
55c55
< complete -c pacman -n '__fish_contains_opt -s A -s F -s U' -a '(__fish_complete_suffix pkg.tar.gz)' -d 'Local package'
> complete -c pacman -n '__fish_contains_opt -s A -s F -s U' -a '(__fish_complete_suffix pkg.tar.xz)' -d 'Local package'
and here is bauerbill.fish:
# Completions for bauerbill, using short options when possible
# Based on Giorgio Lando's pacman.fish
# Primary operations
complete -c bauerbill -s A -f -n '__fish_not_contain_opt -s F -s U -s Q -s R -s S -s h' -d 'Add a package to the system'
complete -c bauerbill -s F -f -n '__fish_not_contain_opt -s A -s U -s Q -s R -s S -s h' -d 'Upgrade a package which is already in the system'
complete -c bauerbill -s U -f -n '__fish_not_contain_opt -s A -s F -s Q -s R -s S -s h' -d 'Upgrade or add a package in the system'
complete -c bauerbill -s Q -f -n '__fish_not_contain_opt -s A -s F -s U -s R -s S -s h' -d 'Query the package database'
complete -c bauerbill -s R -f -n '__fish_not_contain_opt -s A -s F -s U -s Q -s S -s h' -d 'Remove packages from the system'
complete -c bauerbill -s S -f -n '__fish_not_contain_opt -s A -s F -s U -s Q -s R -s h' -d 'Synchronize packages'
complete -c bauerbill -o V -f -d 'Display version and exit'
# General options
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -s d -d 'Skips all dependency checks'
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -s f -d 'Bypass file conflict checks'
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -s r -d 'Specify an alternative installation root'
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -s v -d 'Output more status messages'
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -l config -d 'Specify an altenate config file'
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s Q -s R -s S -s U' -l noconfirm -d 'Bypass any question'
complete -c bauerbill -s h -f -d 'Display syntax and help for the operation'
# Query options
complete -c bauerbill -n '__fish_contains_opt -s Q' -s c -d 'View the changelog of a package'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s g -d 'Display all packages in the group'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s o -d 'Search for the package that owns file'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s e -d 'List orphan packages'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s m -d 'List all packages which are not in the sync database'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s u -d 'List all out of date packages in the system'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s s -d 'Search each locally installed package for regexp'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s i -d 'Display information on a given package'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s l -d 'List all files owned by a given package'
complete -c bauerbill -n '__fish_contains_opt -s Q' -s p -d 'Apply the query to a package file and not to an installed package'
# Remove options
complete -c bauerbill -n '__fish_contains_opt -s R' -s c -d 'Remove also the packages that depends on the target packages'
complete -c bauerbill -n '__fish_contains_opt -s R' -s k -d 'Remove the database entries only'
complete -c bauerbill -n '__fish_contains_opt -s R' -s n -d 'Ignore file backup designations'
complete -c bauerbill -n '__fish_contains_opt -s R' -s s -d 'Remove also the dependencies of the target packages'
# Sync options
complete -c bauerbill -n '__fish_contains_opt -s S' -s c -d 'Remove old packages from the cache; if iterated, remove all the packages from the cache'
complete -c bauerbill -n '__fish_contains_opt -s S' -s e -d 'Install only the dependencies of the target packages'
complete -c bauerbill -n '__fish_contains_opt -s S' -s g -d 'Display all packages in the group'
complete -c bauerbill -n '__fish_contains_opt -s S' -s i -d 'Display informations for the target package'
complete -c bauerbill -n '__fish_contains_opt -s S' -s l -d 'List all packages in the repository'
complete -c bauerbill -n '__fish_contains_opt -s S' -s p -d 'Display URIs for target packages and dependencies'
complete -c bauerbill -n '__fish_contains_opt -s S' -s s -d 'Search packages and descriptions in the repos for regexp'
complete -c bauerbill -n '__fish_contains_opt -s S' -s u -d 'Upgrade all packages that are out of date'
complete -c bauerbill -n '__fish_contains_opt -s S' -s w -d 'Only download the target packages'
complete -c bauerbill -n '__fish_contains_opt -s S' -s y -d 'Download a fresh copy of the master package list from the servers'
complete -c bauerbill -n '__fish_contains_opt -s S' -l ignore -d 'Ignore upgrades of the target packages'
complete -c bauerbill -n '__fish_contains_opt -s S' -l noprogressbar -d 'Do not show a progressbar when downloading files'
# Complete with local packages
complete -c bauerbill -n '__fish_contains_opt -s A -s F -s U' -a '(__fish_complete_suffix pkg.tar.xz)' -d 'Local package'
# Complete with installed packages
complete -c bauerbill -n '__fish_contains_opt -s Q -s R' -a '(pacman -Q | cut --delim " " --fields 1)' -d 'Installed package'
# Complete with packages in the repos
complete -c bauerbill -n '__fish_contains_opt -s S' -a '(pacman -Sl | cut --delim " " --fields 2 | sort)' -d 'Repo package'
# Bauerbill specific switches
complete --command bauerbill --condition '__fish_not_contain_opt aur' --long-option aur --description 'Compile package using the Arch User Repository'
complete --command bauerbill --condition '__fish_not_contain_opt abs' --long-option abs --description 'Recompile package using the Arch Build System'

duply.fish
# Completions for duply
# Author: SanskritFritz (gmail)
# First parameter is the profile name, or 'usage'
complete --command duply --no-files --condition '__fish_is_first_token' --arguments '(/bin/ls /etc/duply ^/dev/null) (/bin/ls ~/.duply ^/dev/null)' --description 'Profile'
complete --command duply --no-files --arguments 'usage' --description 'Get usage help text'
# Second parameter is a duply command
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'create' --description 'Creates a configuration profile'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'backup' --description 'Backup with pre/post script execution'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'bkp' --description 'Backup without executing pre/post scripts'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'pre' --description 'Execute <profile>/pre script'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'post' --description 'Execute <profile>/post script'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'full' --description 'Force full backup'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'incr' --description 'Force incremental backup'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'list' --description 'List all files in backup (as it was at <age>, default: now)'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'status' --description 'Prints backup sets and chains currently in repository'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'verify' --description 'List files changed since latest backup'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'purge' --description 'Shows outdated backup archives [--force, delete these files]'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'purge-full' --description 'Shows outdated backups [--force, delete these files]'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'cleanup' --description 'Shows broken backup archives [--force, delete these files]'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'restore' --description 'Restore the backup to <target_path> [as it was at <age>]'
complete --command duply --no-files --condition 'not __fish_is_first_token' --arguments 'fetch' --description 'Restore single file/folder from backup [as it was at <age>]'
# Options
complete --command duply --no-files --long-option force --description 'Really execute the commands: purge, purge-full, cleanup'
complete --command duply --no-files --long-option preview --description 'Do nothing but print out generated duplicity command lines'
complete --command duply --no-files --long-option dry-run --description 'Calculate what would be done, but do not perform any backend actions'

Similar Messages

  • Post Your's 3DMark 2k1 scores HERE

    I would like to verify my 3DMark 2001 SE (v.330). Post your's results with complete system description (drivers versions, ram timings, overclock settings (if any), ect.)
    Here is my Baby:
    - Athlon 3200 (2210 MHz - NC core, no OC)
    - MSI K8N NEO Platinum (1.4 bios)
    - 2x 512Mb PC3200 Kingston ValueRam (KVR400X64C2.5/512) at 2.5-3-8-3-1T (stock speeds)
    - MSI 6800GT (stock speed)
    - WD Caviar 80GB SATA 8Mb cache
    - Tagan Tg-480 (480W)
    - SB Audigy 2 ZS
    - Other standar stuff
    My 3D 2k1 score: 21435 (with above system&settings, all stock)
    Run at:
    - Win XP + SP2
    - Dx: 9.0c
    - ForceWare: 66.70
    NOW YOUR'S RESULTS...

    Here is mine using the system in my sig.........
    3dmark01 score.....24,552
    http://service.futuremark.com/compare?2k1=8165419
    DX9c
    66.81 nvidia drivers
    XP Pro with SP2

  • Post Your's 3DMark 2001 scores HERE

    I would like to verify my 3DMark 2001 SE (v.330). Post your's results with complete system description (drivers versions, ram timings, overclock settings (if any), ect.)
    Here is my Baby:
    - Athlon 3200 (2210 MHz - NC core, no OC)
    - MSI K8N NEO Platinum (1.4 bios)
    - 2x 512Mb PC3200 Kingston ValueRam (KVR400X64C2.5/512) at 2.5-3-8-3-1T (stock speeds)
    - MSI 6800GT (stock speed)
    - WD Caviar 80GB SATA 8Mb cache
    - Tagan Tg-480 (480W)
    - SB Audigy 2 ZS
    - Other standar stuff
    My 3D 2k1 score: 21435 (with above system&settings, all stock)
    Run at:
    - Win XP + SP2
    - Dx: 9.0c
    - ForceWare: 66.70
    NOW YOUR'S RESULTS...

    MSI K8N Neo Platinum (1.5b2 beta BIOS)
    Athlon 64 3000+ @ 2.4GHz (10 x 240)
    Radeon 9800 Pro @ 450/375
    2x512MB Crucial PC3200 @ 240MHz @ 3-3-3-8 1T
    Catalyst 4.9
    Score: 23,077
    URL: http://service.futuremark.com/compare?2k1=8134558

  • WE20 - post processing: permitted agent tab

    Hi ,
    I need to create a inbound TXTRAW message type for a comapny code which I have done. Then in the screen where you give the process code , the next tab is post processing: permitted agent tab ... here my requirement is that this mail should go to a group of people ... How do I achieve that ?
    Please help.
    Thank You,
    SB.

    Hi MxG,
    I have created a Org unit "US90" ... but how do I directly assign users to that Org ? ... After creating Org ... it is only allowing to create positions .... and if I create position's (AP_US90_TXTR) and assign the users to the position ... In WE20 if I write "AP_US90_TXTR" in the agent field then it gives an error "Object type S, ID AP_US90_TXTR unknown (please observe upper/lower case)" ... So I am unable to proceed. Could you please help me?
    Thank You,
    SB.

  • Post Your HDTV display CONFIGURATION HERE.

    In order to help others, can those who have full (or close) resolution of your HDTV post your display configuration here?
    Please include your television model, OSX version, and list of an additional software/hardware used to get things working.
    Thanks.

    Toshiba 37WL58, Mac mini 1.5GHz Intel Core Solo, DisplayConfigX (registered), connected with the DVI to VGA adapter.
    Verified DisplayConfigX settings:
    Monitor Tab:
    Refresh: 49.00 - 105.00
    Horizontal Frequency: 12.00 - 85.00
    Pixel Frequency: 350.00
    Aspect Ratio: 4:3
    Default Refresh Rate: 60
    Resolution Tab:
    Horizontal - Vertical
    Active Pixel: 1360 - 768
    The others are preset, but should read:
    Front Porch: 64 - 1
    Sync: 144 - 3
    Back Porch: 208 - 23
    Total: 1776 - 795
    The refresh rate should default to 60.003
    Afterwards, choose the Widescreen option on the remote.
    (Thanks to Andyb2 over at AVForums.com and Mark Parsons1 at Apple Discussions)
    Mac mini 1.5GHz Intel Core Solo   Mac OS X (10.4.7)  

  • Your favourite shell / scripting language????

    I am going to learn Scripting in Unix (mainly Solaris) . So i thought of asking you DBA gurus around the world what your favourite scripting language (Python, Perl,.. etc) is and your favourite Shell (csh,sh,ksh) . I found a similair post favourite shell / scripting language?
    which was answered after two years(!!!) with only one reply. I guess i'll be lucky to get more than one perspective this time.

    The way I remember it, having use these since 1983, is:
    - Originally we had the Bourne Shell (/bin/sh), also known as 'Shell'
    - Then came the C shell (/bin/csh) with real programming constructs.
    - Then a number of programming capabilities were retrofit to Shell
    - Then the Korn shell (/bin/ksh) was created to bring C shell capabilities to Shell
    - Then a variant of the Korn Shell was placed in the public domain (/bin/pdksh)
    - Then Bourne Again shell was created as a superset of Korn shell (/bin/bash)
    Seems like a number of people say 'sh' when they mean 'BAsh'. In which case, there should be little advantage to going back to ksh. However, there are many advantages to going up to bash.
    http://www.faqs.org/docs/linux_intro/x7132.html

  • PowerShell Script Module PreCache Ignores DefaultCommandPrefix in Manifest - Results in Tab Completion Errors

    Refer to this thread for background...
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/6507710a-5648-4f52-8d46-3bf6c75ac7f3/module-function-name-resolution-issues-with-defaultcommandprefix?forum=winserverpowershell
    The issue is when PowerShell auto loads the meta data into the CommandAnalysis cache it loads the functions defined in a script module (*.psm1) without consideration that a manifest file (*.psd1) may contain a DefaultCommandPrefix declaration. As a result
    if a user attempts to enter a function using tab completion PowerShell will offer the name as defined in the script module which fails to execute (name not recognized). Importing the module will make the correct name with prefix available for tab completion.
    My recommended approach would be to include the DefaultCommandPrefix in the meta data cache during the initial population as a session is instantiated. Also, when a module is loaded explicitly by a user who specifies a -Prefix value the old references containing
    the DefaultCommandPrefix would need to be removed.
    William Busby, PMP

    Hi William,
    yes, that's something you'll either have to do the hard way or live with admin confusion.
    If you're using Sapien's PowerShell Studio as an Editor (hint: Usually a great idea), you can very easily rename a function, even in a multi-file module project, by rightcklicking on the function-name and selecting "rename".
    Alternatively you can do a bulk rename with Powershell:
    Get all functions in your module (Load it and check exportedcommands)
    loop over each function-name
    calculate new name
    search your entire project for all references and replace them.
    Let me see ...
    function Rename-ModulePrefix
    [CmdletBinding()]
    Param (
    [Parameter(Position = 0, Mandatory = $true)]
    [string]
    $ModuleName,
    [Parameter(Position = 1, Mandatory = $true)]
    [string]
    $OldPrefix,
    [Parameter(Position = 2, Mandatory = $true)]
    [string]
    $NewPrefix,
    [Parameter(Position = 3)]
    [string]
    $Path
    # Catch all typos
    Import-Module $ModuleName -ErrorAction 'Stop'
    # Get root path if not manually passed
    if (-not $PSBoundParameters["Path"])
    $Path = (Get-Module $ModuleName).Path
    # Get module files
    $Files = Get-ChildItem -Path $path -Recurse -Include "*.ps1", "*.psm1", "*.psd1"
    # Iterate over each file
    foreach ($file in $Files)
    # Null variable in case you get an empty file somewhere and run this from Win 7
    $data = $null
    # Get Content of file
    $data = Get-Content $file
    # Replace strings
    foreach ($c in (Get-Module $ModuleName).ExportedCommands)
    $newName = $c.Name -replace $OldPrefix, $NewPrefix
    $data = $data | ForEach-Object { $_ -replace $c.Name, $newName }
    # Write back to file
    $data | Set-Content $file
    While I didn't proof it, in theory this should do it (Make a backup before running it :) ).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Tab completion with a Unix Shell simulation

    Hi everyone,
    I am writing a command line program which needs to interface a Unix Shell.
    when I type "!command", it will send the command to a bash process and read the output then write it on stdout.
    The bash I am running merges stdout and stderr (exec 2>&1).
    Everything works great, but now I would like to add the tab-completion functionality.
    I would just need to send (tab) to the process so that I can read the output completion, I tried many ways but without success.
    Also, I saw we can specify the tag for completion in file ~/.inputrc, but if my tag does not end with \n, I will write it in the buffer and we will be red by bash only after \n is typed.
    I hope I made myself clear.
    Thanks for your help!
    Dimebag

    That is the point.
    I did try with out.write((char)9) twice followed by
    flush(), however the data gets stuck in the buffer
    and will only be received after the next command
    (finishing with \n).
    I would need to use println but this does not work
    either.Ahh, I see...
    According to this page (http://www.die.net/doc/linux/man/man1/screen.1.html), vt100 allows you to send 'ESC [ Pn I", or {(char)33, (char)91, (char)0, (char)73} as an escape code for the horizontal tab. I don't know if that will work either (never done terminal emulation), but it might be worth a shot.
    As an aside, an alias for Bash's tab completion is a Control I, but I don't know what that translates to, if not the weird escape sequence above.

  • Featured tab in app store says " Your request cannot be completed".

    Featured tab in app store says " Your request cannot be completed".
    Only happened after updating to iOS 5?

    Apps can only be downloaded via iTunes on your computer (and then synced to the iPad) or directly on the iPad via the App Store app - have you tried downloading it via either of those ?

  • Oracle Config Tools DBCA DBUA NETCA NETMGR    -Post your issues here

    Hi
    This thread is created to collect user experience with Oracle Config tools
    DBCA DBUA NETCA NETMGR
    You can post your questions,issues and if you come across any bugs you can post here .
    This will be taken into consideration and the fix / solution will be given ASAP .
    Looking forward for your responses .
    Thanks
    Kantha

    Hi,
    I have a Sun SPARC box . There are 7 instances 2 in 9.2.0.8 and 5 in 10.2.0.1 upgraded earlier than my joining. I want to upgrade one of the 9.2.0.8 databases.
    The database to upgarde is up and running and can be connected through listener.
    I login as the owner of ora10g and start dbua. It shows me all the 7 databases but when I select the database to upgrade it throws the following info :
    [b]The Upgrade Assistant Failed in bringing up the database xxxx. Oracle Home /oracle/9.2.0.8 obtained from /etc/oratab was used to connect to the database. Either the database is not running from Oracle Home /oracle/9.2.0.8 or correct Initialization pfile was not found.
    It then asks for pfile. -----------------------------------
    The database is up and running.The Oracle home is also correct in Oratab file.
    I checked the sqls.log file
    It has info like
    set heading off
    set pagesize 0
    set feedback off
    set linesize 2048
    set sqlprompt 'SQL_ENGINE_END_OF_SQL'
    show sqlprompt
    set sqlprompt 'SQL>'
    set sqlprompt 'SQL>';
    set heading off
    set pagesize 0
    set feedback off
    set linesize 2048
    set sqlprompt 'SQL_ENGINE_END_OF_SQL'
    show sqlprompt
    set sqlprompt 'SQL>'
    connect /****** as SYSDBA
    select count(*) from v$instance;
    set heading off
    set pagesize 0
    set feedback off
    set linesize 2048
    set sqlprompt 'SQL_ENGINE_END_OF_SQL'
    show sqlprompt
    set sqlprompt 'SQL>'
    Please help on this issue . Y cant the DBUA see that database is up?

  • Post your questions about #BlackBerry10 here!

    Hey everyone,
    What a week last week! I think I'm finally starting to settle down after all the excitement with our global launch events last week.
    If you're getting a BlackBerry 10 device soon, take a look at these tips on the BlackBerry Help Blog to help you set up your email, contacts, calendar and social networks: http://helpblog.blackberry.com/2013/01/blackberry-10-add-email-contacts/
    Have other questions about BlackBerry 10? Our community can answer pretty much anything, just post your question below!
    Remember, if you have a BlackBerry 10 device and need support, check out the BlackBerry 10 Support boards on the main page of the community.
    ^Bo
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Likes for those who have helped you.Click Accept as Solution for posts that have solved your issue(s)!

    sanjithb wrote:
    Why is the bis being stopped and not unlimited in south africa. Especially on the Z10.
    the BIS is not stopped. BIS is still required for OS7 and previous.
    the Z10 does not need a specific BIS plan, which is generally considered a very good improvement.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Post your photo's here

    post your photo's of your ipod with cases on or any other picture you like.

    Why don't you?

  • Kt600 delta post your gripes here!

    Major gripes with this board :-
    1.why should i have to spend another £50 - £80 on a top of the range psu
       just to  run a £55 motherboard ?
       The amount of people on this forum who have had to upgrade their psu just      
       to get this board up and running is unbelievable
    2. heat :- this board runs a good 10 - 15 degrees higher than its nforce 2
        counterparts ! so you have to go out and buy uprated cooling  to
        get a stable  system  
        never mind trying to clock it
    kt6 chipset :-this is the most unstable board i have ever fitted costing more in the long run to get it all up and running than any other ive built
    shall stick to the nf2 in future
     feel free to post your moans

    1: The heat on the cpu, increased ALOT from my old KT400, very strange.  It vas before, 39-40 (Idle) now its 45-46, much more I think, maybe there is something wrong with the sensor, or the KT400 had a 'good n' sweet days' sensor.
    Well, that would be everything I think.
    I ran my XP2500+ at 3200+ yesterday, and it was very stable, but I had to increase my  TwinMOS PC2700 memory to 3v to have them in 400 mode. And even then I had to remove Ultra mode and everything else fast, that made the computer slower, atlest in 3dmark, then default clock on everything So I will just get better mem and then I will go 3200+ everyday, I hope, if there wont be a problem with the heat.
    Using a open window, and a Cooler Master Aero 7 LITE at 45% speed, I suppose I can increase the speed if I want to clock but Its very loud then.  I think, as I said that there might be some error with the sensor, cause the window was open, and the computer was just under it and totaly open, no plates or sidepanels or something, also it was -3C outside (sweden). The old motherboard (K4v) got much colder.
    EDIT: I have a Q-TEC 550W (you say they suck, not mine ) and I still got very good voltage even when Im in so extreme overclock (to me that is extreme )

  • Useful tab-completion for .bashrc

    I was searching for a tab completion in systemd commands such as:
    $ systemct <TAB> (this show all possible parameters/flags) and another <TAB> (show all units and itself commands).
    Reading posts here and there I found that the following command in .bashrc:
    complete -F or -C command
    did the trick, but this is awful and painfull  cause I need to implement it in all commands, such as, pacman, man, sudo, etc. Ok, googling, I found this usefull script you can put in your .bashrc:
    # completion.bash
    _vault_complete() {
    COMPREPLY=()
    local word="${COMP_WORDS[COMP_CWORD]}"
    local completions="$(vault --cmplt "$word")"
    COMPREPLY=( $(compgen -W "$completions" -- "$word") )
    complete -f -F _vault_complete vault
    This will complete all your commands with infinite posibilities. (This example use command vault, you can use whatever you want)
    I put the link (well explained) here because there is a way to do it in zshell for those interested on it.
    http://goo.gl/RFwgK
    I hope this can be help someone.
    Cheers
    Maybe would be useful to put this script on the bashrc wiki.
    Last edited by JohnnyDeacon (2013-05-21 13:21:21)

    firecat53 wrote:
    Just wondering if you actually tested this first...from what I read on the link you provided, this script fragment provided completion for the 'vault' command only if I'm understanding it correctly. In order to make this work for any command, you would have to repeat that shell fragment for _each_ command. Not sure what this gets you over just using 'complete -cf <cmd>'.
    I think the author was just explaining how to create a bash completion script for an arbitrary command that could be included along with that command. Most software packages have those bash completion scripts already included. This could be used for a command that doesn't include that script already. If that's what you intended with your post it wasn't clear to me :-)
    Scott
    Edit:  I also just noticed that without even having 'complete -cf systemctl' in my .bashrc, bash is still giving me a list of possible systemctl options when I hit <TAB> after typing systemctl. Ooo, nice! Never noticed that before
    complete -cf <cmd> does not complete with flags and parameters.
    I have noticed about a script called bash-completion on repos that do completion very well, I'll check it out if it works with all commands.

  • Ion3 tab completion

    I'm running ion-3ds-20061223-1 from extra and I've notice that tab completion no longer works from any of the input modes. However shift+tab will cycle backwards through all the choices. Here is the error I get from x
    ion3: No encoding given in LC_CTYPE.
    ion3: Argument 2 to complete is of invalid type. (Argument template is
    'oSS', got lua type boolean).
    ion3: Stack trace:
    0 [C]: in 'complete'
    1 [string "WEdln.complete(_, true)"]:1
    [Skipping unnamed C functions.]
    I did a $locale -a and everything is en_US Any idea how to fix this

    thanks veek-
    I did fix the locale...tab selection still does not work. I get basically the same error as above just minus the LC_CTYPE error
    ion3: Argument 2 to complete is of invalid type. (Argument template is
    'oSS', got lua type boolean).
    ion3: Stack trace:
    0 [C]: in 'complete'
    1 [string "WEdln.complete(_, true)"]:1
      [Skipping unnamed C functions.]
    I have the problem posted on the ion mailing list. The first response was just as yours--fix locale. It seems that they are separate errors.

Maybe you are looking for