lib/dots/aliases.zsh in zsh_dots-0.5.8 vs lib/dots/aliases.zsh in zsh_dots-0.5.9
- old
+ new
@@ -59,9 +59,17 @@
alias revert='patch -R -p1'
# Set up Autoenv for this directory.
alias cfg='source .env'
-# Just in case..
-alias dots='nocorrect dots'
+# Globalize some necessary RubyGems
+global_gems=(dots pv)
+for cmd in $global_gems; do
+ eval "function local_$cmd () { bundle exec $cmd \$@ }"
+ eval "function global_$cmd () { globalize $cmd \$@}"
+ alias $cmd=global_$cmd
+ alias _$cmd=local_$cmd
-alias replace='gg_replace'
+ if which _$cmd > /dev/null 2>&1; then
+ compdef _$cmd global_$cmd=$cmd
+ fi
+done