diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-08-21 13:04:01 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-08-21 13:44:04 -0500 |
commit | 44b9fd0fbf5672e101c9ea241b8758f185fac916 (patch) | |
tree | 17efbc9ac7e2bb195cd9fbefe9c190505fe7376c /bashrc | |
parent | 91e3b09ecc345f9afc89eba8c72ef01adac39556 (diff) | |
download | conf-44b9fd0fbf5672e101c9ea241b8758f185fac916.tar.gz conf-44b9fd0fbf5672e101c9ea241b8758f185fac916.zip |
alias to launch a fileserver in the current directory
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 "$@" |