Remove dot prefixes

This commit is contained in:
Oliver Davies 2019-09-04 22:55:23 +01:00
parent 6c307423f3
commit fdfa923c07
13 changed files with 0 additions and 0 deletions

20
functions Normal file
View file

@ -0,0 +1,20 @@
shorten() {
pushd ~/Code/opdavi.es
git pull --rebase
npm run shorten $1 $2
popd
}
function mkd() {
mkdir -p "$@" && cd "$@"
}
function db {
if [ "$1" = "refresh" ]; then
mysql -uroot -e "drop database $2; create database $2"
elif [ "$1" = "create" ]; then
mysql -uroot -e "create database $2"
elif [ "$1" = "drop" ]; then
mysql -uroot -e "drop database $2"
fi
}