fresh
fresh copied to clipboard
Exclude files from globbed directories
My ~/.dotfiles/vim/mappings/ contains:
disable-cursor-keys.vim
indent.vim
pasteboard.vim
whitespace.vim
Some people would like to source all my mappings except for disable-cursor-keys.vim. Right now this requires 3 lines and any new files added won’t be sourced automatically. It’d be nice to be able to do something like this instead:
fresh-options --file=~/.vimrc --marker=\"
# ...
fresh jasoncodes/dotfiles vim/mappings/\*.vim --exclude=disable-cursor-keys.vim
# ...
fresh-options
Ideally --exclude should accept a glob and multiple --exclude options should be allowed (same as rsync).
Reviving an old issue here, but :+1: on this idea. Further, it'd be great if the --exclude option could take a glob. My use case is that I have some .gpg files that I need to decrypt, so I'd end up using it like
fresh stuff/\* --exclude=*.gpg
fresh stuff/\*.gpg --filter=gpg