functions
alias
bash -ixlc : 2>&1 | grep thingToSearchHere
zsh -ixc : 2>&1 | grep thingToSearchHere
-i Force shell to be interactive.
-c Take the first argument as a command to execute
-x -- equivalent to --xtrace
-l Make bash act as if invoked as a login shell
systemctl daemon-reexec
должно хватить , но перезагрузка всегда самый надежный вариант ИМХО.