-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathaliases
More file actions
34 lines (30 loc) · 779 Bytes
/
aliases
File metadata and controls
34 lines (30 loc) · 779 Bytes
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 cl='clear'
alias c='composer'
alias art='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
}