Skip to content

Commit

Permalink
Don't try creating bin on every shell start.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored Jul 8, 2024
1 parent 59ca7b5 commit f507934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/git.rake
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ namespace :git do
git_bin_path = Pathname(git_bin).expand_path
git_bin_path.mkpath
ENV['PATH'] = "#{git_bin_path}:#{ENV.fetch('PATH')}"
add_line_to_file fish_environment, "mkdir -p #{git_bin}; and set -x fish_user_paths #{git_bin} $fish_user_paths"
add_line_to_file bash_environment, "mkdir -p #{git_bin} && export PATH=#{git_bin}:\"$PATH\""
add_line_to_file fish_environment, "test -d #{git_bin}; and set -x fish_user_paths #{git_bin} $fish_user_paths"
add_line_to_file bash_environment, "test -d #{git_bin} && export PATH=#{git_bin}:\"$PATH\""

gpg = which 'gpg'
raise if gpg.nil?
Expand Down

0 comments on commit f507934

Please sign in to comment.