简体   繁体   English

Windows 上的 .bashrc 文件在哪里? (Daniel Kehoe 的 learn-rails 教程)

[英]Where is the .bashrc file on Windows? (Daniel Kehoe's learn-rails tutorial book)

I previously asked a similar question with regards to cloud9, but I am now trying to do the same project in parallel on my windows 10 machine because I will not have internet access to use cloud9.我之前问过关于 cloud9 的类似问题,但我现在正尝试在我的 Windows 10 机器上并行执行相同的项目,因为我无法访问互联网来使用 cloud9。 I am trying to set up the configuration in preparation for following Daniel Kehoe's learn-rails tutorial book, but I am having trouble setting up the environment variables.我正在尝试设置配置以准备遵循 Daniel Kehoe 的 learn-rails 教程书,但我在设置环境变量时遇到了麻烦。 The book seems to explain how to do it on Mac but I can not find the file in the atom editor.这本书似乎解释了如何在 Mac 上执行此操作,但我在 atom 编辑器中找不到该文件。 the book says to type the command:书上说要输入命令:

atom ~/.bash_profile

However this just creates a new file that is not part of my rails app project directory.但是,这只会创建一个不属于我的 rails app 项目目录的新文件。 i have also tried我也试过

atom ~/.bashrc

which is the alternative but with the same result.这是替代方案,但结果相同。 It just creates a file unrelated to my project.它只是创建一个与我的项目无关的文件。 The file is supposed to already exist somewhere.该文件应该已经存在于某处。

I am supposed to put the environment variables into a file called ".bashrc" but I don't know where to find this file as it is hidden.我应该将环境变量放入一个名为“.bashrc”的文件中,但我不知道在哪里可以找到这个文件,因为它是隐藏的。 How can I locate and open this file with Atom text editor?如何使用 Atom 文本编辑器找到并打开此文件?

.bashrc , .bash_profile are used in unix based operating systems for the terminal. .bashrc , .bash_profile用于基于 unix 的终端操作系统。 In windows you set environment variables differently.在 Windows 中,您以不同的方式设置环境变量。 In windows 10, search for environment variables in start menu, and select Edit the system environment variables and set them from there.在 Windows 10 中,在开始菜单中搜索环境变量,然后选择Edit the system environment variables并从那里设置它们。

PS: You can have .bashrc if you have installed something like git bash, cygwin bash or bash for windows 10 or something else. PS:如果你安装了 git bash、cygwin bash 或 bash for windows 10 或其他东西,你可以拥有.bashrc And all 3 handle .bashrc differently.并且所有 3 处理.bashrc的方式都不同。

在 Git Bash 终端中键入echo ~将告诉您包含.bashrc文件的文件夹在哪里

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的cloud9应用程序中的.bashrc文件在哪里? (Daniel Kehoe的学习指南教程) - Where is the .bashrc file in my cloud9 app ? (Daniel Kehoe's learn-rails tutorial book) 我正在关注http://learn-rails.com/上的Learn-rails教程书2 - I'm following the learn-rails tutorial book 2 from http://learn-rails.com/ 为什么电子邮件无法在Rails应用程序中发送? 内部服务器错误)第20章。DanielKehoe学习Rails教程 - Why are emails not sending in my rails app? Internal Server Error) Ch 20. Learn Rails tutorial by Daniel Kehoe 在Learn-Rails教程中出现错误“发送消息需要SMTP到地址” - Error “An SMTP To address is required to send a message” on Learn-Rails Tutorial 在google_drive gem / learn-rails教程创建的GoogleDrive上找不到电子表格 - cant find spreadsheet on GoogleDrive which was created by google_drive gem / learn-rails tutorial 意外的tLABEL(SyntaxError)-Learn-rails - unexpected tLABEL (SyntaxError) - learn-rails learning-rails捆绑包安装错误,解析Gemfile - learn-rails bundle install error parsing Gemfile Windows上未初始化的常量Sprockets :: SassCacheStore错误(在rails上学习ruby) - uninitialized constant Sprockets::SassCacheStore Error on Windows (Learn ruby on rails book) Learn-Rails Tut错误:NoMethodError-GoogleDrive:Module的未定义方法“登录”: - Learn-Rails Tut Error: NoMethodError - undefined method `login' for GoogleDrive:Module: Learn Rails教程-部署到Heroku - Learn Rails tutorial - Deployment to Heroku
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM