optimize smex
optimize shell-pop