Set colors in bash

This commit is contained in:
Thomas Dehaeze 2020-04-02 22:06:41 +02:00
parent e20cb00b9b
commit ca720cc6c6

View File

@ -94,6 +94,7 @@
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
Completion:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# Single tab for autocompletion # Single tab for autocompletion
set show-all-if-ambiguous on set show-all-if-ambiguous on
@ -102,6 +103,7 @@
set completion-ignore-case on set completion-ignore-case on
#+END_SRC #+END_SRC
vi mode:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# VI mode (works in bash and zsh) # VI mode (works in bash and zsh)
set editing-mode vi set editing-mode vi
@ -121,14 +123,35 @@ Key-bindings for vi-mode:
Control-l: clear-screen Control-l: clear-screen
Control-a: beginning-of-line Control-a: beginning-of-line
Control-e: end-of-line Control-e: end-of-line
Control-w: "\C-aisudo \C-e"
set keymap vi-insert set keymap vi-insert
# these are for vi-insert mode # these are for vi-insert mode
Control-l: clear-screen Control-l: clear-screen
Control-a: beginning-of-line Control-a: beginning-of-line
Control-e: end-of-line Control-e: end-of-line
Control-w: "\C-asudo \C-e"
#+END_SRC #+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 * GnuPG
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.gnupg/gpg-agent.conf :header-args: :tangle ~/.gnupg/gpg-agent.conf