Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
28b9612a
Commit
28b9612a
authored
Nov 07, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace plugin
parent
dbecd88f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
plugins/README.markdown
plugins/README.markdown
+1
-0
plugins/replace/replace.fish
plugins/replace/replace.fish
+6
-0
No files found.
plugins/README.markdown
View file @
28b9612a
...
...
@@ -27,6 +27,7 @@
*
__rails__ – Alias for executing database migrations.
*
__rake__ – Completions for rake tasks.
*
__rbenv__ –
[
rbenv
](
https://github.com/sstephenson/rbenv
)
Ruby environment/version manager.
*
__replace__ – A port of
[
replace
](
https://github.com/thoughtbot/dotfiles/blob/master/bin/replace
)
.
*
__rvm__ –
[
RVM
](
http://rvm.io
)
Ruby version manager.
*
__sublime__ – Creates
`subl`
command line shortcut to launch
[
Sublime Text editor
](
http://sublimetext.com/
)
.
*
__tmux__ – Plugin to start tmux with support for 256 colours.
...
...
plugins/replace/replace.fish
0 → 100644
View file @
28b9612a
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment