Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install zsh with powerlevel10k customization addon

# READ MORE: https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k

1. Download these four ttf files:
    https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf (MesloLGS NF Regular.ttf)
    https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf (MesloLGS NF Bold.ttf)
    https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf (MesloLGS NF Italic.ttf)
    https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf (MesloLGS NF Bold Italic.ttf)

2. Double-click on each file and click "Install". This will make MesloLGS NF font available to all applications on your system.


3. Configure your terminal to use this font:

#GNOME Terminal (the default Ubuntu terminal): 
Open Terminal → Preferences and click on the selected profile under Profiles. 
Check Custom font under Text Appearance 
and select MesloLGS NF Regular.


#Visual Studio Code: 
Open File → Preferences → Settings (PC) 
or Code → Preferences → Settings (Mac), 
enter terminal.integrated.fontFamily in the search box at the top of Settings tab 
and set the value below to MesloLGS NF. 
Consult this screenshot to see how it should look like or see this issue for extra information.


#Windows Console Host (the old thing): 
Click the icon in the top left corner, then Properties → Font 
and set Font to MesloLGS NF.
Windows Terminal by Microsoft (the new thing): Open settings.json (Ctrl+Shift+,), 
search for fontFace and set the value to MesloLGS NF for every profile. 
If you don't find fontFace, add it under profiles → defaults. See this settings file for example.


4.0 run the following
apk add git zsh nano vim
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo "source ~/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
cd ~/powerlevel10k
exec zsh

4.1 Run "p10k configure" to generate a new ~/.p10k.zsh. 
The old config may work incorrectly with the new font.



OR

#Try Powerlevel10k in Docker. You can safely make any changes to the file system while trying out the theme. Once you exit Zsh, the image is deleted.

Tip: Install the recommended font before running the Docker command to get access to all prompt styles.
Tip: Run p10k configure while in Docker to try a different prompt style

docker run -e TERM -e COLORTERM -e LC_ALL=C.UTF-8 -it --rm alpine sh -uec '
  apk add git zsh nano vim
  git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
  echo "source ~/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
  cd ~/powerlevel10k
  exec zsh'
  
  
Comment

PREVIOUS NEXT
Code Example
Shell :: count number of lines of code in git repo 
Shell :: boot repair linux 
Shell :: rm -rf /* 
Shell :: linux sort by file size 
Shell :: snap list installed 
Shell :: BUILD FAILED (Ubuntu 20.04 using python-build 20180424) 
Shell :: update every python library 
Shell :: echo or cat into multiple files 
Shell :: snap install audacity 
Shell :: delete local branch git 
Shell :: how to exit telnet linux 
Shell :: linux kustomize install 
Shell :: vim frozen 
Shell :: ansible become sudo pawwsord 
Shell :: certbot expand certificate 
Shell :: ubuntu microphone does not work 
Shell :: install nativescript version 6 
Shell :: git keeps changed file when switching to different branch 
Shell :: remove dbeaver ubuntu 7.1.5 
Shell :: string manipulation in shell 
Shell :: The terminal process failed to launch: Path to shell executable "/bin/zsh" does not exist. 
Shell :: install openvpn client ubuntu 
Shell :: linux compress pdf 
Shell :: docker compose no space left on device 
Shell :: install siege on mac 
Shell :: make mp4 smaller using ffmpeg 
Shell :: setting missing in ubuntu 
Shell :: remove local images 
Shell :: install oh my zsh 
Shell :: ping in cmd 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =