Jesus de Mula Cano 2011-03-07 00:02:43 +01:00
parent 23de53a084
commit 229aa833a2
1 changed files with 5 additions and 8 deletions

View File

@ -11,19 +11,11 @@ function myip {
echo "Your public IP is: ${bold_green} $res ${normal}" echo "Your public IP is: ${bold_green} $res ${normal}"
} }
# Make a directory and immediately 'cd' into it
function mkcd(){ function mkcd(){
mkdir -p "$*" mkdir -p "$*"
cd "$*" cd "$*"
} }
# Search through directory contents with grep
function lsgrep(){
ls | grep "$*"
}
# View man documentation in Preview # View man documentation in Preview
pman () { pman () {
man -t "${1}" | open -f -a $PREVIEW man -t "${1}" | open -f -a $PREVIEW
@ -77,6 +69,11 @@ function t() {
fi fi
} }
# Checks for existence of a command
command_exists () {
type "$1" &> /dev/null ;
}
# List all plugins and functions defined by bash-it # List all plugins and functions defined by bash-it
function plugins-help() { function plugins-help() {