Rocke
5 June 2022 09:24
1
Kernel: 5.15.41-1-MANJARO
DE: Plasma 5.24.5
I haven’t changed my shell, all the things related to shell are kept as the default when installed.
When I try to add something to .zshrc, it worked, but my “echo $SHELL” is bash. Why? And what’s the real dot profile load order?
1 Like
Rocke
6 June 2022 02:46
4
Thanks, I’ll take a closer look at these contents.
Rocke
6 June 2022 03:29
5
I found this thread also useful:
I’ ve installed Manjaro 21.1.6 Pahvo and I found it comes with zsh by default which is great, but my issue is next. When I install nvm from its github repository the installation updates my .bashrc but not the .zshrc file, of course, I can copy the exporting part of nvm from .bashrc to zshrc and have it ready, but my question is. How to import all the configurations from .bashrc in the .zshrc file so that I’ll touch it just once? Thanks in advance.
Rocke
6 June 2022 03:39
6
Add this line to .zshrc:
[[ -e ~/.bash_profile ]] && emulate sh -c ‘source ~/.bash_profile’
And in the .bash_profile:
[[ -f ~/.bashrc ]] && . ~/.bashrc
Then the default bashrc execution gave this:
/home/me/.bashrc:type:90: bad option: -P
zsh: command not found: shopt
zsh: command not found: shopt
zsh: command not found: shopt
May caused by:
shopt -s checkwinsize
shopt -s expand_aliases
shopt -s histappend
type -P dircolors >/dev/null
Is there a way to do “full bash emulate”?
Bash is bash and zsh is zsh. You can’t just mix and match either shell’s specific commands. Either create you own profile without invoking /usr/bin/zsh if you want to use bash or change user shell to zsh.
And you can search for equivalent shell commands if they exist.
Rocke
6 June 2022 07:52
8
Thanks for your explanation, I will try this.
system
Closed
11 June 2022 02:37
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.