Skip to content

Commit

Permalink
Update verion
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Nov 22, 2018
1 parent 3f2619a commit b0e6282
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mcfly"
version = "0.2.0"
version = "0.2.1"
authors = ["Andrew Cantino <[email protected]>"]

[profile.release]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ When suggesting a command, McFly takes into consideration:
```bash
brew install mcfly
```
1. Add the following to your `~/.bash_profile` or `~/.bashrc` file:
1. Add the following to your `~/.bash_profile` (OS X) or `~/.bashrc` (Linux) file:
```bash
if [ -f /usr/local/opt/mcfly/mcfly-bash.sh ]; then
. /usr/local/opt/mcfly/mcfly-bash.sh
if [ -f $(brew --prefix)/opt/mcfly/mcfly-bash.sh ]; then
. $(brew --prefix)/opt/mcfly/mcfly-bash.sh
fi
```
1. Run `. ~/.bash_profile` / `. ~/.bashrc` or restart your terminal emulator.
1. Run `. ~/.bash_profile` (OS X) / `. ~/.bashrc` (Linux) or restart your terminal emulator.

#### Uninstalling with Homebrew

Expand All @@ -57,14 +57,14 @@ When suggesting a command, McFly takes into consideration:
```bash
brew untap cantino/mcfly
```
1. Remove the lines you added to `~/.bash_profile` / `~/.bashrc`.
1. Remove the lines you added to `~/.bash_profile` or `~/.bashrc`.

### Installing manually from GitHub

1. Download the [latest release from GitHub](https://github.com/cantino/mcfly/releases).
1. Install to a location in your `$PATH`. (For example, you could create a directory at `~/bin`, copy `mcfly` to this location, and add `export PATH="$PATH:$HOME/bin"` to your `.bash_profile`.)
1. Copy `mcfly-bash.sh` to a known location.
1. Add the following to your `~/.bash_profile` or `~/.bashrc` file:
1. Add the following to your `~/.bash_profile` (OS X) or `~/.bashrc` (Linux) file:
```bash
if [ -f /path/to/mcfly-bash.sh ]; then
. /path/to/mcfly-bash.sh
Expand All @@ -78,7 +78,7 @@ When suggesting a command, McFly takes into consideration:
1. Run `git clone https://github.com/cantino/mcfly` and `cd mcfly`
1. Run `cargo install --path .`
1. Ensure `~/.cargo/bin` is in your `$PATH`.
1. Add the following to your `~/.bash_profile` or `~/.bashrc` file:
1. Add the following to your `~/.bash_profile` (OS X) or `~/.bashrc` (Linux) file:
```bash
if [ -f /path/to/mcfly-bash.sh ]; then
. /path/to/mcfly-bash.sh
Expand Down
4 changes: 4 additions & 0 deletions pkg/brew/mcfly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ class Mcfly < Formula
def install
prefix.install "mcfly-bash.sh"
bin.install "mcfly"
ohai "To finish installing mcfly, add the following to your ~/.bash_profile (OS X) or ~/.bashrc (Linux) file:
if [ -f $(brew --prefix)/opt/mcfly/mcfly-bash.sh ]; then
. $(brew --prefix)/opt/mcfly/mcfly-bash.sh
fi".strip
end
end

0 comments on commit b0e6282

Please sign in to comment.