Sha256: a52be1eaecca32701a8bd05e9bd20cfe8bb3b0086684a23db65353724279fde2

Contents?: true

Size: 409 Bytes

Versions: 14

Compression:

Stored size: 409 Bytes

Contents

namespace 'shell-init' do
  def posix_export_path
    Hem.ui.output %Q(export PATH="#{ENV['PATH']}")
  end

  def fish_export_path
    Hem.ui.output %Q(set -gx PATH "#{ENV['PATH'].split(':').join('" "')}" 2>/dev/null;)
  end

  task 'bash' do
    posix_export_path
  end

  task 'sh' do
    posix_export_path
  end

  task 'zsh' do
    posix_export_path
  end

  task 'fish' do
    fish_export_path
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hem-1.2.4 lib/hem/tasks/shell_init.rb
hem-1.2.3 lib/hem/tasks/shell_init.rb
hem-1.2.2 lib/hem/tasks/shell_init.rb
hem-1.2.1 lib/hem/tasks/shell_init.rb
hem-1.2.0 lib/hem/tasks/shell_init.rb
hem-1.1.2 lib/hem/tasks/shell_init.rb
hem-1.1.1 lib/hem/tasks/shell_init.rb
hem-1.1.0 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta6 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta5 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta4 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta3 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta2 lib/hem/tasks/shell_init.rb
hem-1.0.1.beta1 lib/hem/tasks/shell_init.rb