summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2024-09-27 12:31:51 +0200
committerMarc Vertes <mvertes@free.fr>2024-09-27 12:31:51 +0200
commit747e6fac1ac0dee69e118f0478a9ad640655c74a (patch)
tree59cd101e088956eb49eb0476f3bdba1b82ac0983
parentf9506ca486f9e0ecc8097f95385813b658ccff7a (diff)
update
-rw-r--r--.bashrc3
-rw-r--r--.vimrc2
-rwxr-xr-xbin/ql3
3 files changed, 8 insertions, 0 deletions
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 <leader>i :cs find i <C-R>=expand("<cfile>")<CR><CR><tab>
" noremap <leader>f :cs find f <C-R>=expand("<cfile>")<CR><CR><tab>
noremap <leader>d :cs find d <C-R>=expand("<cword>")<CR><CR><tab>
+noremap <leader>w :!ql %<CR><CR>
+
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 </dev/null &