a6e1eedddb20

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 12 Feb 2020 11:50:57 -0500
parents 61707f342104
children 73580329f5bf
branches/tags (none)
files bin/bootstrap.sh bin/sqlite shellcheckrc sqliterc

Changes

--- a/bin/bootstrap.sh	Sun Feb 09 18:09:14 2020 -0500
+++ b/bin/bootstrap.sh	Wed Feb 12 11:50:57 2020 -0500
@@ -50,6 +50,7 @@
 ensure_link "src/dotfiles/psqlrc"                 ".psqlrc"
 ensure_link "src/dotfiles/sbclrc"                 ".sbclrc"
 ensure_link "src/dotfiles/shellcheckrc"           ".shellcheckrc"
+ensure_link "src/dotfiles/sqliterc"               ".sqliterc"
 ensure_link "src/dotfiles/stumpwmrc"              ".stumpwmrc"
 ensure_link "src/dotfiles/tmux/tmux.conf"         ".tmux.conf"
 ensure_link "src/dotfiles/vim"                    ".vim"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/sqlite	Wed Feb 12 11:50:57 2020 -0500
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+rlwrap -m'$$$$' \
+       -a____ \
+       --multi-line-ext .sql \
+       --only-cook '^(sqlite| *\.\.\.)> ' \
+       -p'1;32' \
+       --histsize 1000 \
+       --history-filename "$HOME/.rlwrap/sqlite_history" \
+       sqlite3 "$@"
+
--- a/shellcheckrc	Sun Feb 09 18:09:14 2020 -0500
+++ b/shellcheckrc	Wed Feb 12 11:50:57 2020 -0500
@@ -2,3 +2,6 @@
 disable=SC2002
 
 disable=SC2009
+
+# false positives from a linter are *infuriating*
+disable=SC2001
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sqliterc	Wed Feb 12 11:50:57 2020 -0500
@@ -0,0 +1,5 @@
+.timer on
+.headers on
+.mode tabs
+
+.nullvalue ∅'