version: 2.1
This is a little script to install the plugins(/theme) I use(recommended) in my zsh config.
When I'm working in a new Linux device which just installed zsh and oh-my-zsh.
Theme:
- powerlevel10k
Plugins:
- zsh-syntax-highlighting
- zsh-autosuggestions
- zsh-history-substring-search
- auto-notify
- you-should-use
- copyfile
- copypath
- copybuffer
- sudo
Since this script is to install plugins(theme) for oh-my-zsh
, you should make sure you have installed both zsh
and oh-my-zsh
.
-
Install
zsh
:- For Debian-based Linux(Ubuntu, Linux Mint, etc.):
sudo apt install zsh
- For Arch-based Linux:
sudo pacman -S zsh
- For Debian-based Linux(Ubuntu, Linux Mint, etc.):
-
Install
oh-my-zsh
:curl
:sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
or
wget
:sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Clone this repo:
git clone https://github.com/SiriusAhu/zsh-scripts.git
-
Go to the directory:
cd zsh-scripts
-
Run the script:
python3 install.py
-
Install the fonts if you needed.
-
Restart your terminal and enjoy it!
This script will backup both your original and current ~/.zshrc
file
- original: The
~/.zshrc
file before you run this script- Used by
reset.py
| won't be overwritten after created
- Used by
- current: The
~/.zshrc
file after you run this script- backup to
./bak/.zshrc.bak
| can be overwritten every time you run this script
- backup to
If you want to reset your ~/.zshrc
file, just run:
python3 reset.py
Q: I have downloaded my fonts, but why it seems not work?
A: You may make sure you have set the font in your terminal. For example, in
gnome-terminal
, you can set it inEdit -> Preferences -> Profiles -> Text Appearance -> Custom font
.
- Add arguments to choose the download path of fonts.