diff --git a/.psqlrc b/.psqlrc new file mode 100644 index 0000000..1f136f9 --- /dev/null +++ b/.psqlrc @@ -0,0 +1,6 @@ +\pset null '(∅)' +\pset linestyle unicode +\pset border 2 +\pset unicode_border_linestyle double +\timing on +\x auto diff --git a/.vimrc b/.vimrc index 9c94eb1..887cfd2 100644 --- a/.vimrc +++ b/.vimrc @@ -19,12 +19,20 @@ set sm set sw=4 set tw=72 set viminfo='100,<50,s10,h,% + if has('reltime') set incsearch endif -colorscheme hjp -syntax on +if $BG == "light" + set bg=light + colorscheme hjp + syntax on +elseif $BG == "dark" + set bg=dark + syntax on +endif + map :cp map :cn map!  >I<yypa/O diff --git a/.znewterm b/.znewterm index fd204fa..1d30148 100644 --- a/.znewterm +++ b/.znewterm @@ -51,7 +51,7 @@ then then . ~/.zxtermcolors else - perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X"\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors + perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X"\nexport BG=light\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors fi fi diff --git a/GNUmakefile b/GNUmakefile index 2b1f3c5..538bfae 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,6 +7,7 @@ ALLSRC = \ .zshenv \ .zshrc \ .gitconfig \ + .psqlrc \ .vim/colors/hjp.vim \ .vimrc \