diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-16 18:02:53 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-16 18:02:53 +1200 |
commit | fe0f0d9adf972d703a9c290c5734042d6d80b37a (patch) | |
tree | 43429af9e41ed445ce0397b3172474752a2acdeb | |
parent | Remove vestigial reference to speeddating (diff) | |
download | dotfiles-fe0f0d9adf972d703a9c290c5734042d6d80b37a.tar.gz dotfiles-fe0f0d9adf972d703a9c290c5734042d6d80b37a.zip |
Added basic dotfiles for mysql/psql
-rwxr-xr-x | install | 7 | ||||
-rw-r--r-- | mysql/my.cnf | 3 | ||||
-rw-r--r-- | psql/psqlrc | 6 |
3 files changed, 15 insertions, 1 deletions
@@ -10,6 +10,7 @@ # Bash, cURL, Git, Vim, and some terminfo(5) definitions. You can supply # additional flags to link in other configuration files: # +# -d -- mysql/psql # -g -- GnuPG # -m -- Mutt # -n -- Newsbeuter @@ -83,8 +84,12 @@ lns "$dotfiles"/vim/vimrc "$HOME"/.vimrc lns "$dotfiles"/vim "$HOME"/.vim # Link in shell stuff -while getopts :gmntx opt; do +while getopts :dgmntx opt; do case $opt in + d) + lns "$dotfiles"/mysql/my.cnf "$HOME"/.my.cnf + lns "$dotfiles"/psql/psqlrc "$HOME"/.psqlrc + ;; g) mkdir -p -- "$HOME"/.gnupg lns "$dotfiles"/gnupg/gpg.conf "$HOME"/.gnupg/gpg.conf diff --git a/mysql/my.cnf b/mysql/my.cnf new file mode 100644 index 00000000..1c55c791 --- /dev/null +++ b/mysql/my.cnf @@ -0,0 +1,3 @@ +[mysql] +prompt='(\u@\h)\n[\d] mysql> ' + diff --git a/psql/psqlrc b/psql/psqlrc new file mode 100644 index 00000000..e3f4434b --- /dev/null +++ b/psql/psqlrc @@ -0,0 +1,6 @@ +\encoding unicode +\pset null 'NULL' +\set HISTSIZE 1000000 +\set PROMPT1 '(%n@%M:%>)\n[%/] psql> ' +\timing + |