Commit 82b75035 authored by Justin Hileman's avatar Justin Hileman

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

https://github.com/oh-my-fish/plugin-replace
parent cdf9b288
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment