diff options
| author | Christoph Bruecke | 2013-07-31 17:12:27 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-05 21:59:16 -0700 |
| commit | 82d8dbca04437a5924a04dc2e76e65789105080d (patch) | |
| tree | 4170a268ea49858062ffbb49d0e9a90cd53b0217 /Library/Formula | |
| parent | 10ca26864c2e9dfa9f5d52345bdaf10d3743b623 (diff) | |
| download | homebrew-82d8dbca04437a5924a04dc2e76e65789105080d.tar.bz2 | |
autojump: HEAD - Support fish.
Copy the autojump.fish config file to add autojump support with fish.
Closes #21583.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/autojump.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb index 876a59cd9..b68a04b59 100644 --- a/Library/Formula/autojump.rb +++ b/Library/Formula/autojump.rb @@ -12,15 +12,26 @@ class Autojump < Formula bin.install 'bin/autojump' man1.install 'docs/autojump.1' - (prefix+'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh' + (prefix/'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh' zsh_completion.install 'bin/_j' + (prefix/'etc').install 'bin/autojump.fish' if build.head? end - def caveats; <<-EOS.undent + def caveats; + msg = <<-EOS.undent Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember to source the file to update your current session): - - [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh + [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh EOS + + if build.head? + msg += <<-EOS.undent + + Add the following line to your ~/.config/fish/config.fish: + . /usr/local/Cellar/autojump/HEAD/etc/autojump.fish + EOS + end + + msg end end |
