34 lines
763 B
Plaintext
34 lines
763 B
Plaintext
|
alias ..="cd .."
|
||
|
alias ...="cd ../.."
|
||
|
|
||
|
alias h='cd ~'
|
||
|
alias c='clear'
|
||
|
alias artisan='php artisan'
|
||
|
|
||
|
alias phpspec='vendor/bin/phpspec'
|
||
|
alias phpunit='vendor/bin/phpunit'
|
||
|
|
||
|
function serve() {
|
||
|
if [[ "$1" && "$2" ]]
|
||
|
then
|
||
|
sudo dos2unix /vagrant/scripts/serve.sh
|
||
|
sudo bash /vagrant/scripts/serve.sh "$1" "$2" 80
|
||
|
else
|
||
|
echo "Error: missing required parameters."
|
||
|
echo "Usage: "
|
||
|
echo " serve domain path"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
function serve-hhvm() {
|
||
|
if [[ "$1" && "$2" ]]
|
||
|
then
|
||
|
sudo dos2unix /vagrant/scripts/serve-hhvm.sh
|
||
|
sudo bash /vagrant/scripts/serve-hhvm.sh "$1" "$2" 80
|
||
|
else
|
||
|
echo "Error: missing required parameters."
|
||
|
echo "Usage: "
|
||
|
echo " serve-hhvm domain path"
|
||
|
fi
|
||
|
}
|