TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Shell config is crazy complicated. Any solutions?

3 pointsby valtyabout 1 year ago
There are so many config files that are read in a particular order for each shell, interactive vs login, and for each platform. They all configure themselves using env vars and shell functions. Then every dev tool pastes some config into some of these config files.<p>It&#x27;s really out of control.<p>The shell is probably the most used software on a developer&#x27;s computer and it&#x27;s a total mess.<p>Are there any solutions to this?

2 comments

xyzzy_plughabout 1 year ago
It&#x27;s not really out of control or complicated at all.<p>&gt; Then every dev tool pastes some config into some of these config files.<p>This is why you see it to be complicated. <i>Don&#x27;t do this</i>. The only thing you should really ever be editing is $PATH, and even then I&#x27;d argue not to. Do something else. Use direnv, source .env files, write wrapper scripts.<p>I don&#x27;t put arbitrary shit into shell profiles or shell rc files, you&#x27;re just asking for pain.<p>You should understand what you&#x27;re doing before pasting arbitrary bits into these files.
评论 #39790584 未加载
stop50about 1 year ago
I split my shell config into 2 stages: common things and local ones. in the common i set up the plugin manager and other things. In the local i set config fpr the tools