Set colors in bash
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user