Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:bash_tips [2009/04/07 10:38] – created Nicopublic:bash_tips [2011/08/06 17:10] (current) Nico
Line 79: Line 79:
 Shortcuts can be customized using /etc/inputrc or ~/.inputrc; here are the lines to add to have a csh-style history: Shortcuts can be customized using /etc/inputrc or ~/.inputrc; here are the lines to add to have a csh-style history:
  
-  "\e[A": history-search-backward +<code> 
-  "\e[B": history-search-forward+"\e[A": history-search-backward 
 +"\e[B": history-search-forward 
 +</code>   
 +   
 ===== Completion ===== ===== Completion =====
  
Line 87: Line 91:
  
 The first command allows completion by pressing just [Tab], the second command adds a sign for each filetype (* for executable file) The first command allows completion by pressing just [Tab], the second command adds a sign for each filetype (* for executable file)
 +
 +====== Misc. tweaks ======
 +
 +Activate timestamping in 'history':
 +<code>
 +export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '
 +</code>
  
 ====== Useful links ====== ====== Useful links ======