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
| " Vim color file | |
| " Maintainer: Kevin S Kirkup <kevin.kirkup@gmail.com> | |
| " Last Change: 2005 Feb 27 | |
| " This color scheme uses a black background. | |
| " First remove all existing highlighting. | |
| set background=dark | |
| highlight clear |
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
| # Get Vim Path | |
| export VIMRUNTIME=`vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $VIMRUNTIME|quit' | tr -d '\015' ` |
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
| ############################################################ | |
| # Function to grep the command history | |
| function grep_history() { | |
| if [ ! -z "$1" ] ; then | |
| history | grep "$1" | grep -v histg | |
| else | |
| echo "Need a command to grep history for..." | |
| fi | |
| } | |
| alias chg='grep_history' |
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
| ############################################################ | |
| # Function to grep the list of precesses | |
| function grep_process() { | |
| if [ ! -z "$1" ] ; then | |
| ps aux | grep -i "$1" | grep -v grep | |
| else | |
| echo "Need a process name to grep processes for..." | |
| fi | |
| } |
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
| ############################################################ | |
| # Function to extract archives | |
| function extract() { | |
| case $1 in | |
| *.tar.bz2) tar xjvf "$1" ;; | |
| *.tar.gz) tar xvzf "$1" ;; | |
| *.bz2) bunzip2 "$1" ;; | |
| *.gz) gunzip "$1" ;; | |
| *.tar) tar xvf "$1" ;; | |
| *.tbz2) tar xjvf "$1" ;; |
NewerOlder