My .bashrc
Download and install
Everything is in bashrc.tar.gz. Untarrring the file will
produce .bash_login, .bashrc and acd_func.sh.
To permit future updates, provide your own custom .bashrc2 instead of editing
.bashrc from the archive.
What is in my '.bashrc'
- Useful path, ls, df, du, ls, cp, and mv replacemend aliases
- xterm replacement alias that will set proper fonts
- grep color option is activated if supported
- a prompt (red prompt for root)
- Modified cd with history stack
- Binds arrow up and arrow down to search history with mask
- Binds space key to expand '!' expressions
- Binds Alt+R to list history by mask
- Binds Alt+K to put unexecuted command line to history
- Binds Ctrl+X,PgUp to show the last few commands from history
- Binds Ctrl+T to open a new xterm window
- Assigns key bindings for convenient work in xterm
under cygwin
- Ctrl+D will not exit the session
- Command history is configured to be shared between sessions
- Directories in ls displayed in bold
- Ctrl+S is not xoff
- Activates extended tab completions
- Maintains relevant window title for xterm, cygwin and
screen
- xtitle function for manual set of window title
- path_once function for manipulation of $PATH
- Check .bashrc sources in a
convenient html format (autogenerated in vim)
Countless times I have been exposed to the elements without
my faithful '.bashrc'. No more.
X11 clipboard and Bash
If you ever wanted to copy the contents of a file into the clipboard
you might like xclip. This is similar to the concept of 'clip:'
from 4NT -- a virtual device name representing the clipboard that you
can redirect to or from.
For example:
lotzman@safe$ cat .bashrc | xlip
lotzman@safe$ xclip -o > bashrc_copy
First line sends .bashrc to the X11 clipboard. Then from clipboard we
output to bashrc_copy. There are more options in the man page of xclip.
On Debian, if xclip is not already installed, try "apt-get install xclip".
last updated: 28-feb-2005 | comments |
home page |
the text of this page is public domain