Shell-independent way to find the shell's initialization (.shellrc) file?

前端 未结 0 1118
-上瘾入骨i
-上瘾入骨i 2021-02-10 06:39

The brute-force way to do this would be something like:

if [ $SHELL = /bin/zsh ]; then
  rc="$USER/.zshrc"
elif [         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题