how to use powerlevel9k in zsh to get efficient output - themes

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.

Related

Catalina Terminal prompt customise

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

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.

Windows 10 add custom fonts to command line

I'm trying to add fonts to the windows command line so the Ubuntu terminal can use the pre-patched Meslo LG installed from the powerline fonts github page (see below) (so vim-airline won't have any missing special characters).
https://github.com/powerline/fonts
I've followed the tutorial here:
https://www.techrepublic.com/blog/windows-and-office/quick-tip-add-fonts-to-the-command-prompt/
I've installed the fonts successfully, so I can use the font in word.
I've tried different names for the string value and restarted several times but nothing seems to work.
I've look around online, every source offers the same advice for going through the registry editor.
I'm not sure what to do from here and I'd really appreciate some advice.
I'd also really appreciate some insight into how the registry uses the string value to match with the ttf.
EDIT 1:
Windows has a linux subsystem which you can run bash or any other terminal emulator on. In Linux you could add whatever type of font you wanted either through the CLI or GUI install.
I wanted to install Meslo LG S for powerline (the vim plugin that gives you a status bar) since patched fonts are needed that support the special characters.
As it turns out, when it comes to fonts, Windows doesn't care what you've specified. Since the terminal emulator is built on top of the cmd executable, it has the same limitations for fonts.
Rather than just moving to some other terminal emulator, I wanted to solve the problem so other people who're having the same issue with ubuntu terminal for windows 10 could get some help.
As it turns out, Meslo is not a monospace font, so it can't be used in cmd.
Knowing this, I simply chose another patched monospace font and everything works fine.
I haven't answered my question yet because I thought maybe someone with a bit more experience with MS-DOS could show an alternative.

Windows emacs configuration

I use emacs on a Windows computer (I can't chose another OS as it's my work computer).
I want a smooth scrolling but I can't find where to put the configuration file. I've read things like https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but that doesn't work. Does anyone know how to do it?
Thanks.
You said you followed the instructions # https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but it didn't work. Did you try updating the system registry as suggested by https://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dWindows-Registry.html#MS_002dWindows-Registry? That is what worked for me.
I added GNU/Emacs to HKEY_LOCAL_MACHINE/SOFTWARE and added a string HOME with the directory I wanted emacs to refer to as home (C:\Users\my_user_name).
That same link will also describe the search order emacs uses and the values of Environment Variables you can set.

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