V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ilihai
V2EX  ›  问与答

.bashrc 现在该怎么更新了?

  •  
  •   ilihai · Sep 29, 2014 · 3951 views
    This topic created in 4240 days ago, the information mentioned may be changed or developed.
    bash出了漏洞通过yun update修复后,现在修改了.bashrc里面的alias,问题来了:
    source ~/.bashrc 已经无法更新刚修改的alias
    exit 重新登录后也无法更新

    这是要逼我重启的节奏么?
    2 replies    2014-09-29 14:20:25 +08:00
    SoloCompany
        1
    SoloCompany  
       Sep 29, 2014
    怎么可能,bashrc 是你每次 fork 一个 shell 出来的时候执行的,和系统启动没有半毛钱关系
    如果不起作用,请自己仔细检查语法
    SoloCompany
        2
    SoloCompany  
       Sep 29, 2014
    另外,一般建议用户自己加入的环境设置一般更建议是放在 .bash_profile 里面而不是 .bashrc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1027 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:05 · PVG 03:05 · LAX 12:05 · JFK 15:05
    ♥ Do have faith in what you're doing.