aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-16 18:02:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-16 18:02:53 +1200
commitfe0f0d9adf972d703a9c290c5734042d6d80b37a (patch)
tree43429af9e41ed445ce0397b3172474752a2acdeb
parentbc436ac7e4358bb3fbbe23dd26d647b633c89d1b (diff)
downloaddotfiles-fe0f0d9adf972d703a9c290c5734042d6d80b37a.tar.gz
dotfiles-fe0f0d9adf972d703a9c290c5734042d6d80b37a.zip
Added basic dotfiles for mysql/psql
-rwxr-xr-xinstall7
-rw-r--r--mysql/my.cnf3
-rw-r--r--psql/psqlrc6
3 files changed, 15 insertions, 1 deletions
diff --git a/install b/install
index 7c6c7d2d..ace0e6cf 100755
--- a/install
+++ b/install
@@ -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
+