From 747e6fac1ac0dee69e118f0478a9ad640655c74a Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 27 Sep 2024 12:31:51 +0200 Subject: update --- .bashrc | 3 +++ .vimrc | 2 ++ bin/ql | 3 +++ 3 files changed, 8 insertions(+) create mode 100755 bin/ql diff --git a/.bashrc b/.bashrc index fdffc42..4b7d0fb 100644 --- a/.bashrc +++ b/.bashrc @@ -11,6 +11,9 @@ export HISTSIZE=100000 # big big history export HISTFILESIZE=100000 # big big history shopt -s histappend # append to history, don't overwrite it +# Disable Ctrl-S +stty -ixon + # Save and reload the history after each command finishes #export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" diff --git a/.vimrc b/.vimrc index fc1332d..40d2e50 100644 --- a/.vimrc +++ b/.vimrc @@ -133,6 +133,8 @@ noremap i :cs find i =expand("") " noremap f :cs find f =expand("") noremap d :cs find d =expand("") +noremap w :!ql % + function! CloseOnLast() let cnt = 0 for i in range(0, bufnr("$")) diff --git a/bin/ql b/bin/ql new file mode 100755 index 0000000..c154a3e --- /dev/null +++ b/bin/ql @@ -0,0 +1,3 @@ +#!/bin/sh + +qlmanage -p "$1" >/dev/null 2>&1