[split] Move replace plugin to oh-my-fish/plugin-replace

https://github.com/oh-my-fish/plugin-replace
This commit is contained in:
Justin Hileman 2015-05-31 08:30:49 -07:00
parent cdf9b288f3
commit 82b750354e

View File

@ -1,6 +0,0 @@
function replace --description 'Find and replace by a given list of files.'
set find_this $argv[1]
set replace_with $argv[2]
ag -l $find_this $argv[3..-1] | xargs sed -i '' "s/$find_this/$replace_with/g"
end