update shell function