Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to do things like:

  • set up my configuration for vi
  • set up my prompt display string


At the moment, I am having to do that everytime I log on, is there a way to 'automate' this, so I don't have to do it manually each time?

share|improve this question
up vote 6 down vote accepted

autoexec.bat is kind of a launch-mechanism instead of a configure-my-tools-again-and-again-mechanism. you would not setup your notepad-config via autoexec.bat either, so your the right config files for the tools:

  • vi / vim uses .vimrc (and .gvimrc) for its settings
  • the prompt for your shell (bash, zsh etc) is configured by:

    • .bashrc or .bash_profile for bash
    • .zshrc for zsh
    • .tcshrc for tcsh etc.

provide use with more information about what you are using and we could help more.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.