I have a question
In bash to cd to the just created dir I use “mkdir asd && cd $_” so I don’t have to rewrite the dir name.
How can I do that in fish? Tried to search online but found only bash results

@SonoMichele I don't think you can, one of the reasons that I switched from fish to zsh is that it doesn't support the $ and ! shortcuts.

@sotolf Oh no, I started used fish only because it autocompletes commands and they are colored hahaha

@SonoMichele zsh can do the same if you add a couple of plugins :) I have the autocomplete and syntax highlighting as well in mine, I'll see if I can find them for you if you want them :)

@sotolf Thank I’ll check everything out this afternoon when I’m at home, I’ll let you know when I finish or if I have problems haha

Follow

@sotolf I’m looking at it right now, I installed zsh and done the new user configuration. How can I set bash to lunch zsh when I open a terminal? For fish it was written on Arch Wiki. I don’t want to make it the default shell because I’m worried it would break a lot of things hhaha

@SonoMichele I just used chsh it won't break anythign since unlike fish it's bash compatible, I have no problems with anything that I have running in zsh.

wiki.archlinux.org/index.php/C

@SonoMichele the other option would be to put

if [[ $(ps --no-header --pid=$PPID --format=cmd) != "zsh" ]]
then
exec zsh
fi

like in my .bashrc here:

github.com/sotolf2/dotfiles/bl

@sotolf Ok I’ve added the two plugins too, but I’m using starship as prompt because I like it haha

@SonoMichele Starship is way slower than p10k and I don't like the look, so not for me, but just use what you like the most, I don't have to use your prompt :p

Other than that it works well? I hope you'll enjoy zsh :)

@sotolf Yeah you don’t have if you don’t like it hahah. And yes, it seems that everything is working well :)

@SonoMichele That's good to hear, zsh has some cool things by itself as well if you configure them in, and best of all the shortcuts that you're used to still works :) Also it's a bit quicker than fish :)

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.