diff --git a/config/.aliases b/config/.aliases index 0835431..7577c99 100644 --- a/config/.aliases +++ b/config/.aliases @@ -412,20 +412,19 @@ function colourgrid() } function rfdb() { - # mysql -h 192.168.33.10 -u root -proot -e "DROP DATABASE rivalry" - # mysql -h 192.168.33.10 -u root -proot -e "CREATE DATABASE rivalry" - # mysql -h 192.168.33.10 -u root -proot $1 < $2 echo "Dropping database $1" mysql -h 127.0.0.1 -u root -e "DROP DATABASE $1" echo "Creating database $1" mysql -h 127.0.0.1 -u root -e "CREATE DATABASE $1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" + echo "Impoirting into $1" mysql -h 127.0.0.1 -u root $1 < $2 } function edb() { - mysqldump --column-statistics=0 -h 127.0.0.1 -u root $1 > /Users/kjung/Desktop/$2.sql + DATE=`date +%m-%d-%y` + mysqldump --column-statistics=0 -h 127.0.0.1 -u root $1 > /Users/kjung/Desktop/$1-$DATE.sql } function lsp { diff --git a/config/.bash_profile b/config/.bash_profile index 0cf33fd..ae709dc 100644 --- a/config/.bash_profile +++ b/config/.bash_profile @@ -87,7 +87,7 @@ export NVM_DIR="$HOME/.nvm" export HH_CONFIG=hicolor # get more colors shopt -s histappend # append new history items to .bash_history export HISTCONTROL=ignorespace # leading space hides commands from history -export HISTFILESIZE=10000 # increase history file size (default is 500) +export HISTFILESIZE=100000 # increase history file size (default is 500) export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500) export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" # mem/file sync # if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc)