Skip to content

Commit

Permalink
Don't call defaults on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored May 16, 2024
1 parent c9a0088 commit ef9b3f8
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions lib/tasks/rust.rake
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,26 @@ task :rust => [:'brew:casks_and_formulae', :sccache] do
git-fetch-with-cli = true
TOML

defaults 'com.macromates.TextMate' do
write 'environmentVariables', [
{
'enabled' => true,
'name' => 'CARGO_HOME',
'value' => '$HOME/.config/cargo',
},
{
'enabled' => true,
'name' => 'PATH',
'value' => '$CARGO_HOME/bin:$PATH',
},
{
'enabled' => true,
'name' => 'RUSTUP_HOME',
'value' => '$HOME/.config/rustup',
},
], add: true
if macos?
defaults 'com.macromates.TextMate' do
write 'environmentVariables', [
{
'enabled' => true,
'name' => 'CARGO_HOME',
'value' => '$HOME/.config/cargo',
},
{
'enabled' => true,
'name' => 'PATH',
'value' => '$CARGO_HOME/bin:$PATH',
},
{
'enabled' => true,
'name' => 'RUSTUP_HOME',
'value' => '$HOME/.config/rustup',
},
], add: true
end
end

if which 'rustup'
Expand Down

0 comments on commit ef9b3f8

Please sign in to comment.