Created
September 7, 2010 22:11
-
-
Save bernerdschaefer/569232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Store 10,000 history entries | |
| export HISTSIZE=10000 | |
| # Don't store duplicates | |
| export HISTCONTROL=erasedups | |
| # Append to history file | |
| shopt -s histappend | |
| # Conveniently download external resources: | |
| # fetch http://example.com/library.tar.gz | |
| # fetch ftp://example.com/file.zip | |
| function fetch() { | |
| case "$1" in | |
| *.tar.gz) curl -L $1 | tar -zxv ;; | |
| *.tar.bz2) curl -L $1 | tar -jxv ;; | |
| *.zip) curl -L $1 > tmp.zip && unzip tmp.zip && rm tmp.zip ;; | |
| esac | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "\ep": history-search-backward | |
| "\en": history-search-forward | |
| "\C-x\C-r": re-read-init-file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment