Skip to content

Commit

Permalink
Updating history size
Browse files Browse the repository at this point in the history
  • Loading branch information
kjunggithub committed Jan 3, 2019
1 parent 4ab67d0 commit 4df8274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions config/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion config/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4df8274

Please sign in to comment.