You are not logged in.
Whenever I open a terminal Yakuake, the prompt will be
[user1@my_comp dir1]$However:
[user1@my_comp dir1]$echo $SHELL
/bin/zshBut then
[user1@my_comp dir1]$ exec $SHELL
my_comp%Which implies that only after do I call "exec $SHELL", does zsh get activated.
How can it be, given that "echo $SHELL" returns "zhs" already?
And why then does the prompt change after the "exec" command?
In the Terminator terminal the prompt initially will be the correct one:
my_comp%Last edited by gremlin (2023-04-21 12:37:04)
Offline
Your prompt is different because a different (set of) startup files are read. I'd wager one or the other of Terminator or Yakuake runs a login shell while the other runs a regular shell.
But if your configs were set up properly this shouldn't make this kind of difference anyways. Please post your .zshrc and .zprofile.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
~/.zshenv and ~/.zlogin - if they exist.
Do you use OMZ?
Offline
~/.zshrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
source "$HOME/.cargo/env"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
export PATH="$HOME/.local/bin:$PATH"The rest of the abovementioned files don't exist
I don't use OMZ
Offline
>I'd wager one or the other of Terminator or Yakuake runs a login shell while the other runs a regular shell.
What does it depend on? And how to find out whether or not?
Offline
cat /proc/$$/cmdline to see how zsh was invoked.
~/.zshenv is always sourced, create the file and have it "echo I AM ZSHELL" or so to track its invocation.
But you don't set a custom prompt?
ls /etc/zshOffline
By any chance to you have a .bashrc or .bash_profile that exec's zsh? Could one of the two terminals actually start bash which in turn starts zsh (but only after setting a prompt variable)?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
$ cat /proc/$$/cmdline
/bin/bash$ ls /etc/zsh
zprofile> By any chance to you have a .bashrc or .bash_profile that exec's zsh?
No
Offline
Well there you go, one of Yakuake is not running zsh, but bash.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
… and your bashrc or some {/etc/,$HOME/.}profile* is mis-setting SHELL
Offline
Yakuake menu -> Manage profiles... -> Edit "Shell [Default]" -> Set Command as appropriate
Offline
Thanks
Offline