From cb6dfa4ec33ca1f00fb9d0659a19287798134561 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 27 Apr 2022 20:11:01 -0400 Subject: [PATCH 1/5] setup inputrc to disable the bell --- .bashrc | 3 ++- .inputrc | 1 + setup.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .inputrc diff --git a/.bashrc b/.bashrc index 9733ce1..95efd7d 100644 --- a/.bashrc +++ b/.bashrc @@ -119,7 +119,8 @@ fi EDITOR=/usr/bin/vim.basic PAGER="less" LESS="-S" -# export PG="psql -U ptrowbridge -d ubm -p 5432 -h 192.168.1.110" +export PG="psql -U ptrowbridge -d ubm -p 54329 -h hptrow.me" +export PGD="psql -U ptrowbridge -d ubm -p 54339 -h hptrow.me" # GOPATH=$HOME/go # function _update_ps1() { diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..ac81a39 --- /dev/null +++ b/.inputrc @@ -0,0 +1 @@ +set bell-style none diff --git a/setup.sh b/setup.sh index ffc1325..6b95597 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ dir=~/dot_config backup=~/dot_config_backup -files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig" +files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig .inputrc" #-------------------------------------------------install debian tooling----------------------------------------------------------------------------------- From 1429d228e5fc257ca496b737834e7d20254a54a8 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 27 Apr 2022 20:14:20 -0400 Subject: [PATCH 2/5] disable the vim bell --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index bd33222..3aadc91 100644 --- a/.vimrc +++ b/.vimrc @@ -53,6 +53,9 @@ set incsearch set showmatch set hlsearch set mouse=a +"----disable the bell; t_vb is required to be set to nothing +set visualbell +set t_vb= nnoremap \\ :noh " Clear higlighting "nnoremap :noh " Resize windows From 66fcf702d48300a312d35cc61c26141c5563bf10 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 27 Apr 2022 20:28:56 -0400 Subject: [PATCH 3/5] install and setup pspg and make psql default pager --- .bashrc | 1 + setup.sh | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index 95efd7d..a9a41cd 100644 --- a/.bashrc +++ b/.bashrc @@ -121,6 +121,7 @@ PAGER="less" LESS="-S" export PG="psql -U ptrowbridge -d ubm -p 54329 -h hptrow.me" export PGD="psql -U ptrowbridge -d ubm -p 54339 -h hptrow.me" +export PSQL_PAGER="pspg" # GOPATH=$HOME/go # function _update_ps1() { diff --git a/setup.sh b/setup.sh index 6b95597..8d61664 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ dir=~/dot_config backup=~/dot_config_backup -files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig .inputrc" +files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig .inputrc .pspgconf" #-------------------------------------------------install debian tooling----------------------------------------------------------------------------------- @@ -14,17 +14,17 @@ if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed" then echo "curl already installed" else - echo "installing curl" + echo "installing curl..." apt update -q4 apt install curl -y fi #----------vim----------- -if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ] +if [ "$(dpkg-query -W -f='${Status}' "vim" 2>/dev/null | grep -c "ok installed")" == "1" ] then echo "vim already installed" else - echo "installing vim" + echo "installing vim..." apt update -q4 apt install vim -y fi @@ -34,11 +34,21 @@ if [ "$(dpkg-query -W -f='${Status}' "tmux" 2>/dev/null | grep -c "ok installed" then echo "tmux already installed" else - echo "installing tmux" + echo "installing tmux..." apt update -q4 apt install tmux -y fi +#----------pspg----------- +if [ "$(dpkg-query -W -f='${Status}' "pspg" 2>/dev/null | grep -c "ok installed")" == "1" ] +then + echo "pspg already installed" +else + echo "installing pspg..." + apt update -q4 + apt install pspg -y +fi + #------------------------------------------------ create the resore directory if it doesn't already exist-------------------------------------------------- if [ ! -d $backup ] From 8d02d2e6f777671cb4e041fad58ce7f03cfa1b24 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 27 Apr 2022 20:29:10 -0400 Subject: [PATCH 4/5] add pspgcong --- .pspgconf | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .pspgconf diff --git a/.pspgconf b/.pspgconf new file mode 100644 index 0000000..535dec8 --- /dev/null +++ b/.pspgconf @@ -0,0 +1,34 @@ +ascii_menu = false +bold_labels = false +bold_cursor = false +ignore_case = false +ignore_lower_case = false +no_cursor = false +no_sound = false +no_mouse = false +less_status_bar = false +no_highlight_search = false +no_highlight_lines = false +force_uniborder = false +show_rownum = false +without_commandbar = false +without_topbar = false +vertical_cursor = false +on_sigint_exit = false +no_sigint_search_reset = false +double_header = false +quit_on_f3 = false +pgcli_fix = false +xterm_mouse_mode = true +show_scrollbar = true +menu_always = false +empty_string_is_null = true +last_row_search = true +progressive_load_mode = true +highlight_odd_rec = false +hide_header_line = false +theme = 17 +border_type = 2 +default_clipboard_format = 0 +clipboard_app = 0 +hist_size = 500 From 98faeb58c98217a916e6f1842e9e856bf55890f1 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 2 May 2022 12:19:17 -0400 Subject: [PATCH 5/5] set default pspg and import tsx syntax for vim --- .pspgconf | 2 +- .vimrc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pspgconf b/.pspgconf index 535dec8..02dba4a 100644 --- a/.pspgconf +++ b/.pspgconf @@ -27,7 +27,7 @@ last_row_search = true progressive_load_mode = true highlight_odd_rec = false hide_header_line = false -theme = 17 +theme = 0 border_type = 2 default_clipboard_format = 0 clipboard_app = 0 diff --git a/.vimrc b/.vimrc index 3aadc91..9ba8895 100644 --- a/.vimrc +++ b/.vimrc @@ -11,6 +11,8 @@ Plugin 'kien/ctrlp.vim' Plugin 'scrooloose/nerdtree' Plugin 'edkolev/tmuxline.vim' Plugin 'vim-airline/vim-airline-themes' +Plugin 'leafgarland/typescript-vim' +Plugin 'peitalin/vim-jsx-typescript' "Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} " All of your Plugins must be added before the following line call vundle#end() " required