Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Mike Wilson www.whisperingwind.co.uk

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

bash aliases

For old duffers like me who were used to earlier shells when bash came along.

   1  
   2  # These save typing, I use them a lot
   3  
   4  alias sd='cd -' > /dev/null
   5  alias cx='chmod +x'
   6  alias which="type -path"
   7  
   8  # This goes back to Unix v7, some time around 1985 I think.
   9  
  10  alias lf='ls -CF'
  11  
  12  # From my 'C' shell days. Those were almost 20 years ago as well. Sigh.
  13  
  14  alias h='fc -l -20'
  15  alias r='fc -s'
  16  
  17  # Because real men use 'vi' and why use character mode if you have X?
  18  
  19  alias vi='gvim'

.inputrc to make bash command-line editing like ksh

I was used to ksh and vi when bash came along, so I wanted the behaviour to remain the same. Some may think this odd.

   1  
   2  set editing-mode vi
   3  set keymap vi
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS