- A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh pulgins.
- Configure Zsh in one command line
- Rich themes (powered by
oh-my-posh
) - Syntax highlighting (powered by
zsh-syntax-highlighting
) - Provide suggestions of command automatically (powered by
zsh-autosuggestions
) - History substring search (powered by
zsh-history-substring-search
) - A lot of system infomation or git infomation provided (powered by
oh-my-posh
):- Current directory
- Time cost of commands
- Git status
- Git branches
- Battery persontage
- Local time
- Root permission prompt
- No theme or git plugin script written in
zsh
-- faster start up
- If you already have the file
~/.zshrc
, you may want to back it up:
mv ~/.zshrc ~/.zshrc.bak
-
And run the following command to apply the configuration file to you home directory:
- If you don't need to customize your
.zshrc
file and you want to keep your.zshrc
file to the current one, run the following command:
ln -s /etc/zsh/zshrc ~/.zshrc
- If you want to customize your
.zshrc
file, run:
cp /etc/zsh/zshrc ~/.zshrc
- If you don't need to customize your
- Edit line 2, ~/.zshrc, and replace default theme file path with your target theme file path.
Up
: History substring search(backward)Down
: History substring search(forward)Ctrl-Up
: History beginning search(backward)Ctrl-Down
: History beginning search(forward)Ctrl-Left
: Skip a whole word(left)Ctrl-Right
: Skip a whole word(right)Tab
: Command CompletionCtrl-W
: Delete a whole word(left)Ctrl-U
: Delete a whole lineDel
: Delete a character after the cursor