~/.*rc should be modified instead of ~/.*profile

Otherwise, there's no effect for non-login interactive shells
This commit is contained in:
Ivan Pozdeev
2021-05-09 20:16:35 +03:00
parent 294f64f76b
commit 90f7b999ff
2 changed files with 3 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ fi
if [ -z "$print" ]; then
case "$shell" in
bash )
profile='~/.bash_profile'
profile='~/.bashrc'
;;
zsh )
profile='~/.zshrc'