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
497350c7
Commit
497350c7
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move python plugin to oh-my-fish/plugin-python
https://github.com/oh-my-fish/plugin-python
parent
c1cf464e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
46 deletions
+0
-46
plugins/python/_python.fish
plugins/python/_python.fish
+0
-8
plugins/python/pybeautifyjson.fish
plugins/python/pybeautifyjson.fish
+0
-5
plugins/python/pyclean.fish
plugins/python/pyclean.fish
+0
-12
plugins/python/pyhttp.fish
plugins/python/pyhttp.fish
+0
-10
plugins/python/pysmtp.fish
plugins/python/pysmtp.fish
+0
-11
plugins/python/python.load
plugins/python/python.load
+0
-0
No files found.
plugins/python/_python.fish
deleted
100644 → 0
View file @
c1cf464e
# Use python2 if found, otherwise fallback to python.
function _python
if which python2
python2 $argv
else
python $argv
end
end
plugins/python/pybeautifyjson.fish
deleted
100644 → 0
View file @
c1cf464e
# beautify json string
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
function pybeautifyjson
echo $argv | _python -mjson.tool
end
plugins/python/pyclean.fish
deleted
100644 → 0
View file @
c1cf464e
# clean current directory recursively from any .pyc and .pyo files
function pyclean
set -l path2CLEAN
if set -q $argv
set path2CLEAN .
else
set path2CLEAN $argv
end
find $path2CLEAN -name "*.py[co]" -type f -delete
end
plugins/python/pyhttp.fish
deleted
100644 → 0
View file @
c1cf464e
# start in-place a simple http server, take a optional parameter for the port number
function pyhttp
if test -n "$argv"
set HTTPPORT $argv
else
set HTTPPORT 1025
end
_python -m SimpleHTTPServer $HTTPPORT;
end
plugins/python/pysmtp.fish
deleted
100644 → 0
View file @
c1cf464e
# start smtp debugging server, can pass an option port parameter. Default to 1025
function pysmtp
if test -n "$argv"
set SMTPPORT $argv
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
_python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
end
plugins/python/python.load
deleted
100644 → 0
View file @
c1cf464e
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