Add function snippet for shell