Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wszqkzqk/easy-zsh-config
A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh pulgins.
https://github.com/wszqkzqk/easy-zsh-config
shell zsh zshrc
Last synced: 1 day ago
JSON representation
A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh pulgins.
- Host: GitHub
- URL: https://github.com/wszqkzqk/easy-zsh-config
- Owner: wszqkzqk
- License: mit
- Created: 2022-06-20T09:49:46.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T06:13:22.000Z (6 months ago)
- Last Synced: 2024-05-08T07:28:45.243Z (6 months ago)
- Topics: shell, zsh, zshrc
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy Zsh Config
- A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh pulgins.
## Features
- 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## Usage
### Apply to the Current User
- If you already have the file `~/.zshrc`, you may want to back it up:
```zsh
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:
```zsh
ln -s /etc/zsh/zshrc ~/.zshrc
```
- If you want to customize your `.zshrc` file, run:
```zsh
cp /etc/zsh/zshrc ~/.zshrc
```### Configure the Theme
- Edit line 2, ~/.zshrc, and replace default theme file path with your target theme file path.
### Key Usages
- `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 Completion
- `Ctrl-W`: Delete a whole word(left)
- `Ctrl-U`: Delete a whole line
- `Del`: Delete a character after the cursor