2020-06-07 16:09:57 +02:00
|
|
|
# ZSH
|
|
|
|
My ZSH config
|
2020-02-12 17:40:45 -06:00
|
|
|
|
|
|
|
## Setup
|
2020-10-09 20:44:19 +02:00
|
|
|
- Clone the repository to your home folder
|
2020-10-09 21:04:56 +02:00
|
|
|
```git clone --recursive https://github.com/jiriks74/zsh```
|
|
|
|
### `powerlevel10k` theme
|
|
|
|
- Link the `zsh` file to your home folder as `.zshrc`
|
|
|
|
```ln -s ~/zsh/zshrc ~/.zshrc```
|
|
|
|
- Set the `powerlevel10k` theme the way you like it
|
|
|
|
```p10k config```
|
|
|
|
### `pure` shell theme
|
|
|
|
- Link the `zsh.pure` file to your home folder as `.zshrc`
|
|
|
|
```ln -s ~/zsh/zshrc.pure ~/.zsh```
|
2020-06-07 16:09:57 +02:00
|
|
|
|
|
|
|
## Get Dependancies
|
2020-10-09 20:44:19 +02:00
|
|
|
### Included in this repository
|
2020-10-09 21:04:56 +02:00
|
|
|
- `zsh-syntax-highlighting` - syntax highlighting for ZSH
|
|
|
|
- `zsh-autosuggestions` - Suggestions based on your history
|
|
|
|
- `powerlevel10k` theme - The the actual theme
|
|
|
|
- `pure` - Pure shell look for zsh
|
2020-06-08 18:58:46 +02:00
|
|
|
### Get this from your distribution's repository
|
2020-10-09 21:04:56 +02:00
|
|
|
- `autojump` - Jump to directories with j or jc for child or jo to open in file manager
|
|
|
|
- `zsh` - the shell itself
|
|
|
|
### Recomended for `powerlevel10k`
|
|
|
|
- `[nerd-fonts](https://github.com/ryanoasis/nerd-fonts "nerd-fonts github page") - I recomend `MesloLGS NF Regular`
|
2020-06-07 16:09:57 +02:00
|
|
|
|
|
|
|
## Set as default
|
|
|
|
To set zsh as default shell for your user, edit `/etc/passwd` (from `/bin/bash` to `/bin/zsh`)
|
2020-10-09 21:04:56 +02:00
|
|
|
### There are two ways:
|
2020-10-09 21:07:54 +02:00
|
|
|
#### Running this command:
|
2020-10-09 21:04:56 +02:00
|
|
|
```chsch $USER```
|
2020-10-09 21:07:54 +02:00
|
|
|
#### Modifying `/etc/passwd`
|
2020-10-09 21:07:25 +02:00
|
|
|
* Find line containing your username
|
|
|
|
* Put your username instead of `user`
|
2020-10-09 20:44:19 +02:00
|
|
|
From: `user:x:1000:1000::/home/user:/bin/bash`
|
|
|
|
To: `user:x:1000:1000::/home/user:/bin/zsh`
|
|
|
|
|
2020-06-07 16:09:57 +02:00
|
|
|
## What I used
|
2020-10-09 21:04:56 +02:00
|
|
|
My config is based on Chris Titus's config, `powerlevel10k` theme - old config `pure`
|