autoexec.bat相当于Ubuntu?


1

我想做的事情如下:

  • 为vi设置我的配置
  • 设置我的提示显示字符串

等等

目前,我每次登录时都必须这样做,有没有办法“自动化”这个,所以我不必每次都手动执行此操作?

Answers:


6

autoexec.bat是一种启动机制,而不是configure-my-tools-again-again-mechanism机制。你不会通过autoexec.bat设置你的notepad-config,所以你的工具的正确配置文件:

  • vi / vim使用 .vimrc (和 .gvimrc )为它的设置
  • 你的shell(bash,zsh等)的提示符由:

    • .bashrc 要么 .bash_profile 对于bash
    • .zshrc 对于zsh
    • .tcshrc 对于tcsh等

提供有关您正在使用的信息的更多信息,我们可以提供更多帮助。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.