Skip to content

Instantly share code, notes, and snippets.

@NigoroJr
Last active September 13, 2016 00:30
Show Gist options
  • Save NigoroJr/3144066f0bbb4e770feb9414431a8f74 to your computer and use it in GitHub Desktop.
Save NigoroJr/3144066f0bbb4e770feb9414431a8f74 to your computer and use it in GitHub Desktop.
# Description of behavior changes introduced in:
# https://github.com/zplug/zplug/commit/9b990d8d772eacdb0dac663bbc4bdf7de975aff6
#
# When the directory structure is as follows:
#
# ~/foo
# ├── bar
# │   └── func_a
# └── baz
# └── func_b
# Dirs
zplug '~/foo', from:local, lazy:true
# => fpath
# ~/foo
zplug '~/foo/bar', from:local, lazy:true
# => fpath
# ~/foo/bar
zplug '~/foo/{bar,baz}', from:local, lazy:true
# => fpath
# ~/foo/bar
# ~/foo/baz
zplug '~/foo', from:local, lazy:true, use:'{bar,baz}'
# => fpath
# ~/foo/bar
# ~/foo/baz
zplug '~/foo/*', from:local, lazy:true
# => fpath
# ~/foo/bar
# ~/foo/baz
zplug '~/foo', from:local, lazy:true, use:'*'
# => fpath
# ~/foo/bar
# ~/foo/baz
# Files
zplug '~/foo/bar', from:local, lazy:true, use:'*'
# => fpath
# ~/foo/bar
# => functions
# func_a
zplug '~/foo', from:local, lazy:true, use:'*/*'
# => fpath
# ~/foo/bar
# ~/foo/baz
# => functions
# func_a
# func_b
zplug '~/foo/{bar,baz}', from:local, lazy:true, use:'*'
# => fpath
# ~/foo/bar
# ~/foo/baz
# => functions
# func_a
# func_b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment