Skip to content
Browse files

add mysql pager, added --skip option to installer

  • Loading branch information...
1 parent 98c1c87 commit 4b7649e8177e9585ce62c8ef1f20aea33387a543 @sshaw committed
Showing with 6 additions and 0 deletions.
  1. +4 −0 install.sh
  2. +2 −0 my.cnf
View
4 install.sh
@@ -1,11 +1,15 @@
#!/bin/bash
self=$(basename "$0")
+skip=${1##--skip=}
+
git ls-files | grep -v "$self" | while read f
do
dest="$HOME/.$f"
if [ ! -f "$dest" ] || ! diff "$f" "$dest" > /dev/null
then
+ [ -n "$skip" ] && [[ "$f" =~ $skip ]] && continue
+
echo -e "Copying \0033[1m$f\0033[0m to \0033[1m$dest\0033[0m"
cp "$f" "$dest" || break
fi
View
2 my.cnf
@@ -1,2 +1,4 @@
[mysql]
prompt="\d >"
+# Hack to make less -F work in Terminal.app
+pager=TERM=vt100 less -F

0 comments on commit 4b7649e

Please sign in to comment.
Something went wrong with that request. Please try again.