Remove dot prefixes
This commit is contained in:
parent
6c307423f3
commit
fdfa923c07
13 changed files with 0 additions and 0 deletions
20
functions
Normal file
20
functions
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue