refactor shell and emacs configs