forked from ABirHAsan123-beep/MLModelsImplementation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash-completion
More file actions
98 lines (62 loc) · 2.69 KB
/
bash-completion
File metadata and controls
98 lines (62 loc) · 2.69 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
brew-gem -- install gems as homebrew formulas
=============================================
`brew gem` allows you to install any rubygem as a homebrew formula.
It works by generating a stub formula for homebrew, which looks something like this:
class Ronn < Formula
def initialize(*args)
@name = "ronn"
@version = "0.7.3"
super
end
def install
system "gem", "install", name, "--version", version, "--install-dir", prefix
end
end
This formula installs and unpacks all the dependencies under the Cellar path. So the package is completely self contained.
Dependencies
------------
This requires a system rubygems version of 2.3 or greater
There is a bug prior to 2.3 that doesn't install the full dependency tree properly when you use the install-dir flag.
```
sudo /usr/bin/gem update --system
```
Install
-------
brew install brew-gem
Usage
-----
brew gem install heroku
To install a specific version:
brew gem install heroku 3.8.3
To upgrade:
brew gem upgrade heroku
To uninstall:
brew gem uninstall heroku
### BASH/ZSH Completions
To make use of completions for your gem, you need to install the
`bash-completion` formula:
brew install bash-completion
And then install a gem with the completion files in the following locations:
* A directory named either `completion` or `completions` with the file being
the name of the gem appended with the completion type.
For example: `completions/tmuxinator.bash`
* A file somewhere in your repo named `<your_gem_name>_completion.zsh`.
Files with `.bash` and `.sh` will be associated with bash and files ending in
`.zsh` will be associated with zsh.
Philosophy
----------
This is **not** for installing development libraries, but for standalone binary tools that you want system wide.
Troubleshooting
----------
If your seeing build errors similar to this:
```shell
==> Fetching opsicle from gem source
==> gem install /Library/Caches/Homebrew/opsicle-0.4.2.gem --no-rdoc --no-ri --no-user-install --install-dir /usr/local/Cellar/opsicle/0.4.2 --bindir /usr/local/Cellar/opsicle/0.4.2/bin
make: *** [generator.bundle] Error 1
Gem files will remain installed in /usr/local/Cellar/opsicle/0.4.2/gems/json-1.8.1 for inspection.
Results logged to /usr/local/Cellar/opsicle/0.4.2/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
```
You probably have xcode 5.1 installed which changed the way the compilers handle flags.
You'll need to set `ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future` before installing.
_You may want to add this to your profile so you don't have to set it each time._