Added lsgrep() function and comments for mkcd() function
parent
9a6e841805
commit
e787f2653e
|
|
@ -11,11 +11,19 @@ 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue