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
ef24766b
Commit
ef24766b
authored
Jan 06, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #81: default to python2 and fallback to python
parent
1d7a5617
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
plugins/python/_python.fish
plugins/python/_python.fish
+8
-0
plugins/python/pybeautifyjson.fish
plugins/python/pybeautifyjson.fish
+2
-2
plugins/python/pyhttp.fish
plugins/python/pyhttp.fish
+2
-1
plugins/python/pysmtp.fish
plugins/python/pysmtp.fish
+2
-1
No files found.
plugins/python/_python.fish
0 → 100644
View file @
ef24766b
# Use python2 if found, otherwise fallback to python.
function _python
if which python2
python2
else
python
end
end
plugins/python/pybeautifyjson.fish
View file @
ef24766b
# beautify json string
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
function pybeautifyjson
echo $argv | python -mjson.tool
end
\ No newline at end of file
echo $argv | _python -mjson.tool
end
plugins/python/pyhttp.fish
View file @
ef24766b
...
...
@@ -5,5 +5,6 @@ function pyhttp
else
set HTTPPORT 1025
end
python -m SimpleHTTPServer $HTTPPORT;
_python -m SimpleHTTPServer $HTTPPORT;
end
plugins/python/pysmtp.fish
View file @
ef24766b
...
...
@@ -5,6 +5,7 @@ function pysmtp
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
_
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
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