github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

ricobl / dotfiles

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

My dotfiles and useful scripts — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of git@github.com:ricobl/dotfiles 
Enrico (author)
Mon Feb 01 14:36:17 -0800 2010
commit  dd460ab554ff2fdd14dcb21c3208ef951fe06644
tree    d0913b82be47a0c799f69b48d81ce021af899ee5
parent  1d63ce31bf4ec0aefea96eaba012e7d4d66da581 parent  3a0cfb5bf83ea561ea42a39d8e6c12ea4c3bff48
dotfiles / bin / fab_bash_completion bin/fab_bash_completion
100755 37 lines (31 sloc) 0.986 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
 
#
# Name: fab_bash_completion
# Description: Adds tab-completion to fabfile tasks
# Date: 2009-10-28
#
# Author: Enrico Batista da Luz
# E-mail: rico.bl@gmail.com
# Website: http://ricobl.wordpress.com/
#
# Installation: point to this file from your .bash_profile, like so:
#
# . ~/path/to/fab_bash_completion
#
# Mostly adapted from:
#
# http://www.debian-administration.org/article/An_introduction_to_bash_completion_part_2
#
 
_fab_completion()
{
local cur prev opts
 
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
 
# Get the list of available tasks, ignoring errors (missing or invalid fabfile)
# Removing the "Available commands" header and any empty line or spaces
opts="`fab --list 2> /dev/null | grep -v -e 'Available commands' -e "^$" | sed -e 's/ \+\(\w\+\).*/\1/g'`"
 
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _fab_completion -o default fab
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server