Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
43bdea4c
Commit
43bdea4c
authored
Feb 22, 2015
by
Robby Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing say() function in perl plugin so that it doesn't overwrite OSX comand…
Removing say() function in perl plugin so that it doesn't overwrite OSX comand line utility. Closes #2562
parent
ce607d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
perl.plugin.zsh
plugins/perl/perl.plugin.zsh
+1
-7
No files found.
plugins/perl/perl.plugin.zsh
View file @
43bdea4c
...
@@ -27,7 +27,7 @@ alias latest-perl='curl -s http://www.perl.org/get.html | perl -wlne '\''if (/pe
...
@@ -27,7 +27,7 @@ alias latest-perl='curl -s http://www.perl.org/get.html | perl -wlne '\''if (/pe
# Functions #################################################################
# Functions #################################################################
# newpl - creates a basic Perl script file and opens it with $EDITOR
# newpl - creates a basic Perl script file and opens it with $EDITOR
newpl
()
{
newpl
()
{
# set $EDITOR to 'vim' if it is undefined
# set $EDITOR to 'vim' if it is undefined
[[
-z
$EDITOR
]]
&&
EDITOR
=
vim
[[
-z
$EDITOR
]]
&&
EDITOR
=
vim
...
@@ -54,9 +54,3 @@ pgs() { # [find] [replace] [filename]
...
@@ -54,9 +54,3 @@ pgs() { # [find] [replace] [filename]
prep
()
{
# [pattern] [filename unless STDOUT]
prep
()
{
# [pattern] [filename unless STDOUT]
perl
-nle
'print if /'
"
$1
"
'/;'
$2
perl
-nle
'print if /'
"
$1
"
'/;'
$2
}
}
# say - append a newline to 'print'
say
()
{
print
"
$1
\n
"
}
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