Skip to content

Instantly share code, notes, and snippets.

@ayushhdwi
Last active October 19, 2021 11:16
Show Gist options
  • Save ayushhdwi/ae4dc4337ad4ed2bff5cd37810bd43ae to your computer and use it in GitHub Desktop.
Save ayushhdwi/ae4dc4337ad4ed2bff5cd37810bd43ae to your computer and use it in GitHub Desktop.
Gnome Terminal Padding & PowerLevel10k Config - by @ayushhdwi
# first install lsd package from github release page => (https://github.com/Peltoche/lsd), then
# add the following line at the end of (~/.zshrc) file to use lsd instead of ls
alias ls=lsd
alias ll='lsd -alF'
alias la='lsd -A'
alias l='lsd -F'
alias cls=clear
/* location => ~/.config/gtk-3.0 */
/* add the following lines to add padding to your Gnome Terminal */
VteTerminal,
TerminalScreen,
vte-terminal {
padding: 5px 10px 5px 10px;
-VteTerminal-inner-border: 5px 10px 5px 10px;
}

Instructions

  1. Install some nerd fonts from here I use Caskaydia Coce Nerd Font and Meslo Nerd Font
  2. Change Fonts in your respective terminals
  3. Install zsh if it is not already installed sudo apt install zsh to install in debian sudo pacman -S zsh to install in Arch or similiarly for other distributions
  4. Set zsh as your default shell chsh -s $(which zsh) source ~/.zshrc restart terminal to check or Logout and Login again to see the effect
  5. Install PowerLevel10k using manual script from their repo
  6. After PowerLevel10k Installation you can use my config file or create you own or run zsh shell after P10k install and it will prompt you for setting configs and you can answer the questions asked.
  7. To get terminal padding in gnome terminal use the code given above and paste it in the gtk.css file.
  8. See .zshrc file in this GIST to use lsd tool instead of ls

Screenshot of zsh shell

You can get my config from here.

My zsh config screenshot 1

My zsh config screenshot 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment