Functions have their own syntax about placing the brackets: the opening bracket must be followed by a newline or a blank space; the closing bracket must be on its own line or eventually on the same line of the preceding commands if and only if the last command is followed by semi-colon. The following alternatives should work:
Code:
tt(){
tree -pFCfa . | grep "$1" | less -RgIKNs -P "H >>> "
}
Code:
tt()
{
tree -pFCfa . | grep "$1" | less -RgIKNs -P "H >>> "
}
Code:
tt(){ tree -pFCfa . | grep "$1" | less -RgIKNs -P "H >>> "
}
Code:
tt(){ tree -pFCfa . | grep "$1" | less -RgIKNs -P "H >>> "; }