Skip to content

Commit

Permalink
Change Userscripts directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 10, 2022
1 parent 6c8a49e commit 3bacd78
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
env:
SHELLCHECK_OPTS: --format=gcc


rubocop:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ task :macos => [
:keka,
:arduino,
:mouse_trackpad,
:userscripts,
]
8 changes: 8 additions & 0 deletions lib/tasks/userscripts.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
task :userscripts => :files do
icloud_scripts_dir = Pathname('~/Library/Mobile Documents/com~apple~CloudDocs/com.userscripts.macos.Userscripts-Extension/Data/Documents/scripts').expand_path
icloud_scripts_dir.dirname.mkpath

defaults 'com.userscripts.macos' do
write 'NSNavLastRootDirectory', icloud_scripts_dir.to_path
end
end

0 comments on commit 3bacd78

Please sign in to comment.