Catalina Terminal prompt customise - macos

I have update my mac book pro 2017 15 inches to catalina. I wanted to customize my terminal window default prompt some thing like this
Praveen > Training > Java >
Where Praveen is the user name, Java is the sub folder under Training folder. I did this in Mojave . But I am not able to do in Catalina. Request you to help me to change my terminal prompt like that.
Thanks in Advance.

Apple switched the default shell from bash to zsh. If your old prompt is written for bash, it will not work in zsh. zsh provide more rich functionality then batch. You can check this link to learn more about that.
https://www.howtogeek.com/362409/what-is-zsh-and-why-should-you-use-it-instead-of-bash/
If you are using zsh, I suggest you try theme p10k. It is highly configurable and it is really fast. I am pretty sure it will satisfy your needs.
https://github.com/romkatv/powerlevel10k

Related

using git-posh or/and oh-my-posh with Command Prompt(cmd, not Powershell) inside windows terminal

Recently switched to new windows terminal, and after hours of searching on internet I was not able to find anything helpful, all what I want is to set up cmd inside new windows terminal to show git branches just like it's achievable for powershell.
eg like this
I have been very comfortable with cmd especially with its ability to use additional linux commands and don't wanna switch to powershell only because of nice displays of git branches. this is a source where everything is nicely explained for powershell, all I want is to do the same for CMD.
thanks in advance
In order to use Oh My Posh for shell-prompt customization from cmd.exe, the legacy Windows shell (citing from the docs (tab cmd)):
There's no out of the box support for Windows CMD when it comes to custom prompts. There is however a way to do it using Clink, which at the same time supercharges your cmd experience. Follow the installation instructions and make sure you select autostart.
As you later discovered, this issue on GitHub has background information on why native cmd.exe support isn't possible (even though Oh My Posh is generally shell-agnostic) and why third-party software is needed to make it work.
As for your comments re preferring cmd.exe:
I have been very comfortable with cmd
Migrating from the shell one is used to a new one is undoubtedly a painful transition, but well worth considering in this case:
While not without its quirks, PowerShell is vastly superior in just about every respect to cmd.exe, and enables you to do things you simply cannot do in cmd.exe
its ability to use additional linux commands
Linux (WSL) commands called from the Windows side are all mediated via executables (notably wsl.exe and bash.exe), which you can equally call from PowerShell.

how to use powerlevel9k in zsh to get efficient output

I have installed zsh and oh my zsh in my terminal and change it using an online guide in a Ubuntu Linux derivative called Zorin OS 15.
but after installing it, I tried to use powerlevel9k theme but it didn't end up as it was shown in the guide or in any other video.
If you know the solution, please answer the question.
Thank you
this is the result. Please check it
You probably also need to install the powerline fonts so that the prompt displays correctly.
https://github.com/powerline/fonts
Use powerlevel10k instead. It's backward-compatible with powerlevel9k configs but much faster, easier to set up and has scores of extra features. Type p10k configure after installing it. Optionally, install the recommended font to unlock all prompt styles.

Weird Termimal Prompt Mac OSX

I did an update to Mojave and now when I go to the terminal is says:
csarson:~ janet$
it never had the csarson:~ part before. I checked and there is no user with this name. Is it something I should be concerned with? Does anyone know if it a bash profile of some kind?
Thanks in advance,
Janet
I believe that is the name of your computer. The terminal prompt format is:
Computer-Name:{working-directory} {username}$
So in this case csarson is your computer's name. See the image below for how it looks on my MacBook Pro, also running Mojave.

Can I integrate Cmder in VS Code on a Mac?

Is there a way where I can use Cmder in VS code on Mac? And if so, then how do I integrate it?
If not, do you know any good alternatives?
I've thought about using Hyper as an alternative, but I cannot get it to look the way I want it to, and it doesn't seem to have the same "intelligence". For instance, if I want to go back into the prev. directory, I have to type cd .., whereas in Cmder I can type cd.. or cd ...
You can set powershell link here
brew cask install powershell
It is not possible to use cmder in VS Code on a Mac.
I have tried to look for some alternatives, but ended up using Hyper.io
Hopefully there will come an alternative with the "Intellisence" feature Cmder has which I really like.

Can I install WhizzyTeX for Emacs on a Mac (is Mac OS X a unix environment)?

I think my question is pretty stupid, but here it goes:
I am using Aquamacs, and I want to install the WhizzyTeX mode. The website for WhizzyTeX says that "it is designed for Unix platforms".
I read that Mac OS X is unix certified, but does that mean I can install WhizzyTeX on my mac? If yes, can I install and use it with Aquamacs or do I have to use the Emacs running from the terminal?
PS: I don't know whether this question should be posted here or on SuperUser, but as Emacs users seem to hang out here more often, this is the place I chose.
EDIT: There are some websites saying I can use WhizzyTeX with Carbon Emacs on mac os x, but some places say I cannot (see for example this pdf document, page 27, which says that "* whizzytex: http://cristal.inria.fr/whizzytex/ mode in latex with ocaml good fo linux, should also work in cygwin, doe not work on osx"). So I am really confused...
If anyone is interested, I managed to make it. It is a bit slow and I think some files have issues, but in any case, it works!
The trick is to do what is explained here except for step 4. What I did instead was put the whizzytex.sty file in the same place as whizzytex.el and whizzytex (see step 5 in the article) and then I opened the file whizzytex (the one without extension), and where it says:
name (or full path) of the dump latex2e package file (without the extension)
PACKAGE=whizzytex.sty
I changed it to the path where I put whizzytex.sty. In my case I have:
PACKAGE=/Users/viviannevilar/.emacs.d/packages/whizzytex.sty
I hope this is useful for someone :)
You can install with the software distribution system Macports:
sudo port install tex-whizzytex
You only have to set up your emacs configuration files afterwards.
Have fun!
According to this site (scrolled about 3/4's the way down) it says that it can be installed on Mac OS. It pretty much just says:
make
sudo make install

Resources