aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mobile-shell.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/mobile-shell.rb')
-rw-r--r--Library/Formula/mobile-shell.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/mobile-shell.rb b/Library/Formula/mobile-shell.rb
index 04a076f43..7f957afea 100644
--- a/Library/Formula/mobile-shell.rb
+++ b/Library/Formula/mobile-shell.rb
@@ -18,6 +18,10 @@ class MobileShell < Formula
def install
system "./autogen.sh" if build.head?
+ # teach mosh to locate mosh-client without referring
+ # PATH to support launching outside shell e.g. via launcher
+ inreplace "scripts/mosh", "'mosh-client", "\'#{bin}/mosh-client"
+
# Upstream prefers O2:
# https://github.com/keithw/mosh/blob/master/README.md
ENV.O2