class Shell
Public Class Methods
bash()
click to toggle source
# File lib/helpers/fzf/test/test_go.rb, line 41 def bash @bash ||= begin bashrc = '/tmp/fzf.bash' File.open(bashrc, 'w') do |f| f.puts ERB.new(TEMPLATE).result(binding) end "bash --rcfile #{bashrc}" end end
fish()
click to toggle source
# File lib/helpers/fzf/test/test_go.rb, line 66 def fish UNSETS.map { |v| v + '= ' }.join + 'fish' end
zsh()
click to toggle source
# File lib/helpers/fzf/test/test_go.rb, line 53 def zsh @zsh ||= begin zdotdir = '/tmp/fzf-zsh' FileUtils.rm_rf(zdotdir) FileUtils.mkdir_p(zdotdir) File.open("#{zdotdir}/.zshrc", 'w') do |f| f.puts ERB.new(TEMPLATE).result(binding) end "ZDOTDIR=#{zdotdir} zsh" end end