My Linux Environment setup (apps, settings and optimizations)
- My Terminal Setup (Zsh, Oh my Zsh, Powerlevel10k and Kitty)
- VS Code
- Linux Distribution configuration
- Linux Themes
- Useful Apps
This tutorial provides a comprehensive guide on how to install and configure Zsh, Oh my Zsh, and Powerlevel10k with automatic suggestions, syntax highlighting, and auto-completion.
By following the step-by-step instructions, you will be able to create a personalized and efficient terminal environment for your development work.
-
sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
-
Install Oh My Zsh :
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
-
autosuggesions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
-
zsh-syntax-highlighting plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
-
zsh-fast-syntax-highlighting plugin
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
-
zsh-autocomplete plugin
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
-
-
-
Open .zshrc using gedit (change it as you want)
sudo gedit ~/.zshrc
-
Find the line which says
plugins=(git)
. -
Replace that line with
plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)
-
-
install powerlevel10k
-
first install the fonts : Download these four ttf files (you have to change the font of the terminal to MesloLGS NF) :
-
Install powerlevel10k for Oh my zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
Now, edit the
ZSH_THEME
in~/.zshrc
file into :-
in terminal :
sudo gedit ~/.zshrc
-
edit the theme to be like this
ZSH_THEME="powerlevel10k/powerlevel10k"
-
-
-
Configure powerlevel10k
- open new terminal and type
p10k configure
- configure it as you want
- open new terminal and type
-
-
open terminal and type :
chsh -s $(which zsh)
-
logout and login again
-
The theme credits goes to lactua. You can download the config from here
- First install kitty terminal
- Install Fira Code Font
- Finally install the theme by running
install.sh
script.- Make sure you are in the same directory as the script.
- Make the script executable by running
-
chmod +x install.sh
-
- Run the script
-
./install.sh
-
Shortcut | Action |
---|---|
ctrl+shift+c | copy_to_clipboard |
ctrl+shift+v | paste_from_clipboard |
ctrl+shift+enter | new_window |
ctrl+shift+w | close_window |
ctrl+tab | next_window |
ctrl+shift+tab | previous_window |
ctrl+shift+r | start_resizing_window |
ctrl+shift+right | next_tab |
ctrl+shift+left | previous_tab |
ctrl+shift+t | new_tab |
ctrl+shift+q | close_tab |
ctrl+shift+up | move_tab_forward |
ctrl+shift+down | move_tab_backward |
ctrl+shift+n | set_tab_title |
ctrl+shift+l | next_layout |
ctrl+shift+kp_add | change_font_size all +2.0 |
ctrl+shift+kp_subtract | change_font_size all -2.0 |
ctrl+shift+backspace | change_font_size all 0 |
ctrl+shift+f5 | load_config_file |