aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+