Created
August 16, 2015 12:50
-
-
Save alyssais/688ee17d3a9299d49ea7 to your computer and use it in GitHub Desktop.
Fix pry terminal corruption issues with rspec. The same file is executed by both Ruby and Bash. Isn't that cool‽
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
<<SH_COMMENT | |
#!/usr/bin/env ruby | |
begin | |
load File.expand_path("../spring", __FILE__) | |
rescue LoadError | |
end | |
require 'bundler/setup' | |
load Gem.bin_path('rspec-core', 'rspec') | |
__END__ | |
SH_COMMENT | |
ruby -x "$0" $@ | |
stty sane |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment