mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
replaced 4 spaces tabs for 2 spaces tab
This commit is contained in:
parent
02a8a66424
commit
db0eda65bc
@ -1,6 +1,5 @@
|
|||||||
# beautify json string
|
# beautify json string
|
||||||
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
|
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
|
||||||
function pybeautifyjson
|
function pybeautifyjson
|
||||||
echo $argv | python -mjson.tool
|
echo $argv | python -mjson.tool
|
||||||
end
|
end
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
# clean current directory recursively from any .pyc and .pyo files
|
# clean current directory recursively from any .pyc and .pyo files
|
||||||
function pyclean
|
function pyclean
|
||||||
if test -n $argv
|
if test -n $argv
|
||||||
set path2CLEAN $argv
|
set path2CLEAN $argv
|
||||||
else
|
else
|
||||||
set path2CLEAN .
|
set path2CLEAN .
|
||||||
end
|
end
|
||||||
|
|
||||||
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
|
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
|
||||||
end
|
end
|
@ -1,9 +1,9 @@
|
|||||||
# start in-place a simple http server, take a optional parameter for the port number
|
# start in-place a simple http server, take a optional parameter for the port number
|
||||||
function pyhttp
|
function pyhttp
|
||||||
if test -n "$argv"
|
if test -n "$argv"
|
||||||
set HTTPPORT $argv
|
set HTTPPORT $argv
|
||||||
else
|
else
|
||||||
set HTTPPORT 1025
|
set HTTPPORT 1025
|
||||||
end
|
end
|
||||||
python -m SimpleHTTPServer $HTTPPORT;
|
python -m SimpleHTTPServer $HTTPPORT;
|
||||||
end
|
end
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# start smtp debugging server, can pass an option port parameter. Default to 1025
|
# start smtp debugging server, can pass an option port parameter. Default to 1025
|
||||||
function pysmtp
|
function pysmtp
|
||||||
if test -n "$argv"
|
if test -n "$argv"
|
||||||
set SMTPPORT $argv
|
set SMTPPORT $argv
|
||||||
else
|
else
|
||||||
set SMTPPORT 1025
|
set SMTPPORT 1025
|
||||||
end
|
end
|
||||||
echo "smtp server started on port" $SMTPPORT;
|
echo "smtp server started on port" $SMTPPORT;
|
||||||
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
|
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user