Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to do things like:

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

etc

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

1 Answer 1

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

 
discard

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.