From ca720cc6c66ded54258c2c8fb87c7fae30925541 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Thu, 2 Apr 2020 22:06:41 +0200 Subject: [PATCH] Set colors in bash --- dotfiles/config.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/dotfiles/config.org b/dotfiles/config.org index 34ab98c..93ff469 100644 --- a/dotfiles/config.org +++ b/dotfiles/config.org @@ -94,6 +94,7 @@ :header-args+: :comments both :mkdirp yes :END: +Completion: #+BEGIN_SRC conf # Single tab for autocompletion set show-all-if-ambiguous on @@ -102,6 +103,7 @@ set completion-ignore-case on #+END_SRC +vi mode: #+BEGIN_SRC conf # VI mode (works in bash and zsh) set editing-mode vi @@ -121,14 +123,35 @@ Key-bindings for vi-mode: Control-l: clear-screen Control-a: beginning-of-line Control-e: end-of-line + Control-w: "\C-aisudo \C-e" set keymap vi-insert # these are for vi-insert mode Control-l: clear-screen Control-a: beginning-of-line Control-e: end-of-line + Control-w: "\C-asudo \C-e" #+END_SRC +Colorized completion +#+begin_src conf + # Color files by types + set colored-stats On + # Append char to indicate type + set visible-stats On + # Mark symlinked directories + set mark-symlinked-directories On + # Color the common prefix + set colored-completion-prefix On + # Color the common prefix in menu-complete + set menu-complete-display-prefix On +#+end_src + +Don't echo =^C= after =Ctrl+C= is pressed. +#+begin_src conf + set echo-control-characters off +#+end_src + * GnuPG :PROPERTIES: :header-args: :tangle ~/.gnupg/gpg-agent.conf