Neither functions seem to affect anything for me? Is anyone able to get them working and show me what I'm doing wrong?
I'm trying to override git pull to include recursive submodules whilst keeping other git commands work
#https://superuser.com/a/479816
function git() {
case $* in
-pull* ) shift 1; command git pull --recurse-submodules "$@" ;;
* ) command git "$@" ;;
esac
}
function ls() {
case $* in
-la* ) shift 1; command ls -la "$@" | more ;;
* ) command ls "$@" ;;
esac
}