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:12:41 +02:00
|
|
|
```
|
|
|
|
git clone --recursive https://github.com/jiriks74/zsh
|
|
|
|
```
|
2020-10-09 21:04:56 +02:00
|
|
|
### `powerlevel10k` theme
|
|
|
|
- Link the `zsh` file to your home folder as `.zshrc`
|
2020-10-09 21:12:41 +02:00
|
|
|
```
|
|
|
|
ln -s ~/zsh/zshrc ~/.zshrc
|
|
|
|
```
|
2020-10-09 21:04:56 +02:00
|
|
|
- Set the `powerlevel10k` theme the way you like it
|
2020-10-09 21:12:41 +02:00
|
|
|
```
|
2020-10-09 21:50:55 +02:00
|
|
|
zsh
|
2020-10-09 23:18:43 +02:00
|
|
|
```
|
|
|
|
- If configuration won't start automatically, just run
|
|
|
|
```
|
2020-10-09 21:12:41 +02:00
|
|
|
p10k config
|
|
|
|
```
|
2020-10-09 21:04:56 +02:00
|
|
|
### `pure` shell theme
|
|
|
|
- Link the `zsh.pure` file to your home folder as `.zshrc`
|
2020-10-09 21:12:41 +02:00
|
|
|
```
|
|
|
|
ln -s ~/zsh/zshrc.pure ~/.zsh
|
|
|
|
```
|
2020-06-07 16:09:57 +02:00
|
|
|
|
|
|
|
## Get Dependancies
|
2020-08-31 08:44:29 -05:00
|
|
|
|
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-08-19 12:34:12 -05:00
|
|
|
|
2020-06-08 18:58:46 +02:00
|
|
|
### Get this from your distribution's repository
|
2021-11-14 19:08:23 +01:00
|
|
|
### Debian Dependencies
|
2021-11-14 19:19:33 +01:00
|
|
|
```
|
2021-11-14 19:08:23 +01:00
|
|
|
sudo apt install autojump zsh
|
|
|
|
```
|
2020-08-19 12:34:12 -05:00
|
|
|
|
2021-11-14 19:08:23 +01:00
|
|
|
### Arch Dependencies
|
2021-11-14 19:19:33 +01:00
|
|
|
```
|
2021-11-14 19:08:23 +01:00
|
|
|
yay -S autojump zsh
|
|
|
|
```
|
2020-08-19 12:34:12 -05:00
|
|
|
|
2020-10-09 21:04:56 +02:00
|
|
|
### Recomended for `powerlevel10k`
|
2020-10-09 21:15:17 +02:00
|
|
|
- [`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`)
|
2021-11-14 19:08:23 +01:00
|
|
|
|
2020-10-09 21:04:56 +02:00
|
|
|
### There are two ways:
|
2020-10-09 21:07:54 +02:00
|
|
|
#### Running this command:
|
2021-11-14 19:26:38 +01:00
|
|
|
<<<<<<< HEAD
|
2020-10-09 21:04:56 +02:00
|
|
|
```chsch $USER```
|
2021-11-14 19:08:23 +01:00
|
|
|
|
2021-11-14 19:26:38 +01:00
|
|
|
=======
|
2021-11-14 18:47:07 +01:00
|
|
|
- ```chsch $USER```
|
|
|
|
- Input your password
|
|
|
|
- Input `/bin/zsh`
|
2021-11-14 19:26:38 +01:00
|
|
|
>>>>>>> master
|
2020-10-09 21:07:54 +02:00
|
|
|
#### Modifying `/etc/passwd`
|
2021-11-14 19:19:33 +01:00
|
|
|
* Change your user in `/etc/passwd` to `/bin/zsh` instead of `/bin/bash`
|
2021-11-14 19:08:23 +01:00
|
|
|
<details>
|
|
|
|
|
2020-10-09 21:07:25 +02:00
|
|
|
* Find line containing your username
|
2021-11-14 19:21:50 +01:00
|
|
|
* Change the end of the line
|
|
|
|
From: ...`:/bin/bash`
|
2020-10-09 21:12:41 +02:00
|
|
|
|
2021-11-14 19:21:50 +01:00
|
|
|
To: ...`:/bin/zsh`
|
2021-11-14 19:08:23 +01:00
|
|
|
</details>
|
2020-10-09 20:44:19 +02:00
|
|
|
|
2020-06-07 16:09:57 +02:00
|
|
|
## What I used
|
2020-10-09 21:12:41 +02:00
|
|
|
My config is based on Chris Titus's config, `powerlevel10k` theme and `pure`
|