summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-08-21 13:04:01 -0500
committerJesse Luehrs <doy@tozt.net>2011-08-21 13:44:04 -0500
commit44b9fd0fbf5672e101c9ea241b8758f185fac916 (patch)
tree17efbc9ac7e2bb195cd9fbefe9c190505fe7376c /bashrc
parent91e3b09ecc345f9afc89eba8c72ef01adac39556 (diff)
downloadconf-44b9fd0fbf5672e101c9ea241b8758f185fac916.tar.gz
conf-44b9fd0fbf5672e101c9ea241b8758f185fac916.zip
alias to launch a fileserver in the current directory
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 8b648bd..22d8778 100644
--- a/bashrc
+++ b/bashrc
@@ -96,6 +96,14 @@ alias ..='cd ..'
alias dotperl="rsync -av lib/* ${HOME}/perl5/local/"
alias clean_packages='sudo pacman -Rsn $(pacman -Qqdt)'
alias pm="find lib -type f | sort"
+function web {
+ local port=$1
+ if [[ -z $port ]]; then
+ plackup -MPlack::App::Directory -e'Plack::App::Directory->new'
+ else
+ plackup -MPlack::App::Directory -e'Plack::App::Directory->new' --port $port
+ fi
+}
function perldoc {
if type -P cpandoc > /dev/null 2>&1; then
cpandoc "$@"