Closed ghost closed 10 years ago
Maybe you need to set $SHELL explicitly to zsh, because $SHELL is /bin/bash in your zsh session.
I don't want to use zsh as my shell.
I only use it to give me some nice options in the terminal is all.
Why can't j4-dmenu work like this?
Thanks
How should it know that it should start things using zsh if you're not telling it to do so?
$SHELL should always point to the shell you're using.
This is the output at my terminal;
~> echo $SHELL
/bin/bash
It's my understanding that all this does is add more functionality to the terminal and should not break anything needing bash.
Are you sure you're using a bash?
What does echo $0
say?
Ahhh I've never known of echo 0
, all I've ever known was echo $SHELL...
echo 0 says /bin/zsh
So what does this mean that echo $SHELL says bash and ech 0 say zsh?
Thanks for your time...
It means you're really using zsh all the time ;)
Ok, but why does echo $SHELL say bash?
By the way using zsh like I'm doing with those options in my .zshrc, could it break something when compiling source, especially the kernel, or anything else important you can think of?
Sheesh just when I thought I was geek enough, maybe I should just dump it... :(
thanks again...
$SHELL is usually set at login time I think.
I'd recommend to copy the settings from .bashrc to your zshrc and setting your shell (login shell, default emulator shell [depends on terminal emulator] and so on) to zsh. That also avoids always running two shells at the same time (outer bash shell and inner zsh shell).
encore: please note that "exec cmd" will replace the current (bash) shell.
You may want to try invoking zsh as either an interactive shell (zsh -i) or as a login-shell (zsh -l) both invocations will "inititalize" the environment accordingly, including $SHELL.
encore: please note that "exec cmd" will replace the current (bash) shell.
Thanks, I missed that. Quoting the POSIX spec:
If command is specified, exec shall not return to the shell; rather, the exit status of the process shall be the exit status of the program implementing command, which overlaid the shell.
To be honest I thought I'd use zsh for the fancy terminal options, but I find myself not really using them. I don't know much about this, but I was told for compiling things as example, maybe even the kernel, you want to compile from a bash shell not zsh...
$Shell crap I've never been to good at, just some real basics, so maybe it's best I just stick to bash, but do you guys know any .similar things I could add to my .bashrc to accomplsh pretty much the same? Anywhere online I could read that shows a lot of nice bash options to use similar to zsh?
Thanks
P.S. I found two cmds and I figured out how to malke a pretty cool prompt;
bind 'TAB:menu-complete'
bind "set show-all-if-ambiguous on"
PS1="\[\e[38;5;24m\]\h\[\e[38;5;255m\]:\[\e[38;5;24m\]pts\[\e[38;5;251m\]\w\[\e[1;36m\]\l \[\e[38;5;23m\] \D{%I}\[\e[38;5;251m\]:\[\e[38;5;23m\]\D{%M} \[\e[38;5;24m\]\u\e[m \w> "
I'm using zsh as my default shell since quite some time everywhere and haven't experienced any issues building stuff or something like that.
Aha... could you try replacing exec zsh
with exec zsh "$@"
in your bashrc? This should fix the initial issue.
Hi,
As a user I took the leap LOL;
chsh -s /bin/zsh
So I'm now on zsh shell and j4 is working fine, but I'll also give exec zsh "$@" a go too.
Thanks
Hi,
I learned a trick a while back on being able to run bash as the shell but use zsh for it's features without having to switch to zsh as your shell.
In order to do this, all you have to do is place in your .bashrc;
And then of course you have a zsh config file ~/.zshrc placed in your $HOME
When I run j4 from the terminal this is all I see for any application I try and run, there are no errors, but nothing will start.
Also in case it caught your eye, don't worry I changed the source SearchPath only for my $HOME :)
I hope you can fix this, I really like using my terminal with bash this way.
Here is my .bashrc;
Here is my .zshrc