From 62243cd0b5262e14df7e7b5b7103b5b2e006cab5 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Wed, 19 May 2021 23:46:22 +0100 Subject: Add more to css --- .../installing-zsh-and-powerlevel10k-on-arch-linux/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/posts/arch/2020-09-07/installing-zsh-and-powerlevel10k-on-arch-linux') diff --git a/www/posts/arch/2020-09-07/installing-zsh-and-powerlevel10k-on-arch-linux/index.html b/www/posts/arch/2020-09-07/installing-zsh-and-powerlevel10k-on-arch-linux/index.html index f3640a2..0411eb1 100644 --- a/www/posts/arch/2020-09-07/installing-zsh-and-powerlevel10k-on-arch-linux/index.html +++ b/www/posts/arch/2020-09-07/installing-zsh-and-powerlevel10k-on-arch-linux/index.html @@ -5,6 +5,9 @@ Installing Zsh and Powerlevel10k on Arch Linux + + + @@ -29,6 +32,8 @@ $ zsh-newuser-install -f

Changing The Default Shell

Insta /bin/zsh /usr/bin/zsh

The same command can be used to change the default shell by providing it with the full path to the shell.

$ chsh -s /bin/zsh

Note that this change is not instant and you will need to log out and log in again for it to take affect. Once you have done that check the SHELL environment variable again to confirm the change.

$ echo $SHELL
 
-/bin/ksh

Installing Powerlevel10k

Powerlevel10k is a theme for Zsh and in order to make the most of it you should install the Meslo Nerd Font that has been patched for Powerlevel10k.

$ yay -Sy --noconfirm ttf-meslo-nerd-font-powerlevel10k

You need to configure your terminal to use this font. How this is done is dependant upon what terminal you are using. Since I use st from suckless I need to edit the file config.h and specify MesloLGS NF in the font settings.

static char *font = "MesloLGS NF:pixelsize=14:antialias=true:autohint=true";

Before rebuilding st.

$ sudo make install

Now that the dependences have been meet Powerlevel10k can be installed.

$ yay -Sy --noconfirm zsh-theme-powerlevel10k-git

Once it has been installed ensure that Zsh loads Powerlevel10k.

$ echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

You can now open a new terminal which will start the Powerlevel10k configuration wizard. This will ask you a few questions and configure your prompt. If it doesn't trigger automatically, type p10k configure.

Once the configuration wizard has finished open a new terminal and you should see the Powerlevel10k theme been used.

Links

Installing Arch Linux on a Thinkpad X220.Zsh.Powerlevel10k.Simple Terminal.Arch - Read More Posts.

I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.

Email david@davidtsadler.comThe contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Copyright © 2021 David T. Sadler.

Return to Homepage. +/bin/ksh

Installing Powerlevel10k

Powerlevel10k is a theme for Zsh and in order to make the most of it you should install the Meslo Nerd Font that has been patched for Powerlevel10k.

$ yay -Sy --noconfirm ttf-meslo-nerd-font-powerlevel10k

You need to configure your terminal to use this font. How this is done is dependant upon what terminal you are using. Since I use st from suckless I need to edit the file config.h and specify MesloLGS NF in the font settings.

static char *font = "MesloLGS NF:pixelsize=14:antialias=true:autohint=true";

Before rebuilding st.

$ sudo make install

Now that the dependences have been meet Powerlevel10k can be installed.

$ yay -Sy --noconfirm zsh-theme-powerlevel10k-git

Once it has been installed ensure that Zsh loads Powerlevel10k.

$ echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

You can now open a new terminal which will start the Powerlevel10k configuration wizard. This will ask you a few questions and configure your prompt. If it doesn't trigger automatically, type p10k configure.

Once the configuration wizard has finished open a new terminal and you should see the Powerlevel10k theme been used.

Links

Installing Arch Linux on a Thinkpad X220.Zsh.Powerlevel10k.Simple Terminal.Arch - Read More Posts.

I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.

Email david@davidtsadler.com

License

The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Copyright © 2021 David T. Sadler.

Return to Homepage. + + -- cgit v1.2.3-13-gbd6f