mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-22 09:19:47 +08:00
[split] Move replace plugin to oh-my-fish/plugin-replace
https://github.com/oh-my-fish/plugin-replace
This commit is contained in:
parent
cdf9b288f3
commit
82b750354e
|
@ -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
|
Loading…
Reference in New Issue
Block a user