Permalink
Browse files

Add transforms for rsync, vmstat, and dstat

  • Loading branch information...
1 parent dd15723 commit 5b9c26f3081829426725a015a584e281eae86799 @oknowton committed Dec 1, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 init.zsh
View
@@ -117,6 +117,22 @@ _dwim_build_data() {
BUFFER="cd $filename"
fi'
+ ## vmstat -> dstat -f -> vmstat
+ _dwim_add_transform '^vmstat' \
+ '_dwim_sed "s/^vmstat/dstat -f/"'
+
+ _dwim_add_transform '^dstat -f' \
+ '_dwim_sed "s/^dstat -f/vmstat/"'
+
+ ## rsync -> rsync -aHAXS -> rsync -axHAXS
+ _dwim_add_transform '^rsync -aHAXS' \
+ '_dwim_sed "s/^rsync -aHAXS/rsync -axHAXS/"'
+
+ _dwim_add_transform '^rsync -axHAXS' \
+ '_dwim_sed "s/^rsync -axHAXS/rsync/"'
+
+ _dwim_add_transform '^rsync ' \
+ '_dwim_sed "s/^rsync /rsync -aHAXS /"'
}
_dwim_build_data

0 comments on commit 5b9c26f

Please sign in to comment.