How to configure Bash Completion on Mac for Docker and Docker-Compose
Run:
brew install bash-completion
Add the following lines to your ~/.bash_profile:
# required for bash-completion, see https://superuser.com/a/819222/13521
| # Put this file in any directories that should be included as empty directories in the repo | |
| # i.e. ignore the contents but include the empty dir | |
| # ignore everything in this directory | |
| * | |
| # but whitelist these files - important to include gitignore in repo | |
| !.gitignore |
How to configure Bash Completion on Mac for Docker and Docker-Compose
Run:
brew install bash-completion
Add the following lines to your ~/.bash_profile:
# required for bash-completion, see https://superuser.com/a/819222/13521
| import os | |
| import sys | |
| import pickle | |
| import console | |
| import editor | |
| # I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder | |
| sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')] | |
| import dropboxlogin # this code can be found here https://gist.github.com/4034526 |
| -- delay doesn't work properly on Yosemite so we need to override it. | |
| -- See http://apple.stackexchange.com/questions/161749/applescript-delay-not-working-since-switch-to-yosemite | |
| on delay duration | |
| set endTime to (current date) + duration | |
| repeat while (current date) is less than endTime | |
| tell AppleScript to delay duration | |
| end repeat | |
| end delay | |
| on alfred_script(q) |
| using terms from application "Quicksilver" | |
| on process text joinCode | |
| tell application "join.me" to activate | |
| tell application "System Events" | |
| tell process "join.me" | |
| set visible to true | |
| keystroke joinCode | |
| click button 4 of window 1 | |
| end tell | |
| end tell |
| CmdUtils.CreateCommand({ | |
| name: "gamefaqs", | |
| icon: "http://www.gamefaqs.com/favicon.ico", | |
| author: {name: "Andy Madge", email: "[email protected]", homepage: "http://blog.andymadge.com/"}, | |
| description: "Searches GameFAQs", | |
| homepage: "http://gist.github.com/49456", | |
| takes: {"query": noun_arb_text}, | |
| _GameFAQsPlatformCodes: { | |
| all: '0', |
| CmdUtils.CreateCommand({ | |
| // based on 'journey' by Tom Parker (http://tevp.net/projects/ubiquity/) | |
| name: "tfl-journey-planner", | |
| icon: "http://journeyplanner.tfl.gov.uk/favicon.ico", | |
| author: {name: "Andy Madge", email: "[email protected]", homepage: "http://blog.andymadge.com/"}, | |
| description: "Plans a journey using TfL Journey Planner", | |
| takes: {"destination": noun_arb_text}, | |
| homepage: "http://gist.github.com/48977", | |
| execute: function(input){ |
| CmdUtils.CreateCommand({ | |
| name: "123-reg", | |
| icon: "http://www.123-reg.co.uk/favicon.ico", | |
| author: {name: "Andy Madge", email: "[email protected]", homepage: "http://blog.andymadge.com/"}, | |
| description: "Searches 123-reg.co.uk for domain name availability", | |
| license: "GPL", | |
| homepage: "http://gist.github.com/48973", | |
| takes: {"query": noun_arb_text}, | |
| preview: function( pblock, searchTerm ) { |