Last active
October 1, 2015 17:26
-
-
Save iget-esoares/8469a0a4eca649d83cdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ..="cd .." | |
alias ...="cd ../.." | |
alias h='cd ~' | |
alias c='clear' | |
alias cdt='cd ~/Code/cdtsys' | |
alias vpublish='php artisan vendor:publish --force' | |
function link-material() { | |
sudo rm -rf ~/Code/cdtsys/vendor/iget-master/material-admin | |
cd ~/Code/cdtsys/vendor/iget-master/ | |
sudo ln -s ~/Code/material-admin/ material-admin | |
cd ~/Code/cdtsys/ | |
} | |
function fixperm() { | |
sudo chown -R www-data storage | |
sudo chmod -R 0770 storage | |
sudo chown -R www-data bootstrap/cache | |
sudo chmod -R 0770 bootstrap/cache | |
echo "Laravel permissions fixed" | |
} | |
function serve() { | |
if [[ "$1" && "$2" ]] | |
then | |
sudo dos2unix ~/scripts/serve.sh | |
sudo bash ~/scripts/serve.sh "$1" "$2" | |
else | |
echo "Error: missing required parameters." | |
echo "Usage: " | |
echo " serve domain path" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment