-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
34 lines (30 loc) · 813 Bytes
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
alias ..="cd .."
alias ...="cd ../.."
alias h='cd ~'
alias c='clear'
alias artisan='php artisan'
alias phpspec='vendor/bin/phpspec'
alias phpunit='vendor/bin/phpunit'
alias serve=serve-laravel
function serve-laravel() {
if [[ "$1" && "$2" ]]
then
sudo dos2unix /vagrant/scripts/serve-laravel.sh
sudo bash /vagrant/scripts/serve-laravel.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
}