Fix shell command history