mirror of
https://github.com/atom/atom.git
synced 2026-02-11 15:14:59 -05:00
Load local bundles from ~/.atom/bundles
This commit is contained in:
@@ -11,7 +11,12 @@ class TextMateBundle
|
||||
@bundles: []
|
||||
|
||||
@loadAll: ->
|
||||
for bundlePath in fs.list(require.resolve("bundles"))
|
||||
globalBundles = fs.list(require.resolve("bundles"))
|
||||
|
||||
localBundlePath = fs.join(atom.configDirPath, "bundles")
|
||||
localBundles = fs.list(localBundlePath) if fs.exists(localBundlePath)
|
||||
|
||||
for bundlePath in globalBundles.concat(localBundles ? [])
|
||||
@registerBundle(new TextMateBundle(bundlePath))
|
||||
|
||||
@registerBundle: (bundle)->
|
||||
|
||||
Reference in New Issue
Block a user