From 46acef850df62c66cfd1964d0210561844cb10a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sun, 9 Jan 2022 13:02:19 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index b7bb342..c5b8091 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ My ZSH config ## Setup - Clone the repository to your home folder ``` +cd ~ git clone --recursive https://github.com/jiriks74/zsh ``` ### `powerlevel10k` theme @@ -28,38 +29,30 @@ ln -s ~/zsh/zshrc.pure ~/.zsh ## Get Dependancies ### Included in this repository - - `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 - -### Get this from your distribution's repository - ### Debian Dependencies - ``` - sudo apt install autojump zsh - ``` - - ### Arch Dependencies - ``` - yay -S autojump zsh - ``` + - [`zsh-z`](https://github.com/agkozak/zsh-z) - ZSH plugin that is alternative to `autojump`. Use `z dirname`to go to a specific directory on your system without having to type the whole path (eg `z et` will get you to `/etc`) + - [`dirhistory`](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dirhistory) - Plugin from oh my zsh that allows you to easily go through history of directories (due to this not being a repository I have to update this plugin manually. If it's out of date, please create an issue) + - [`ssh-connect`](https://github.com/gko/ssh-connect) - Plugin that logs your `ssh` commands and provides a nice menu with your recent connections (alias: `sshc`) + - [`web-search`](https://github.com/sineto/web-search) - Allows you to DuckDuckGo, Google, etc. directly from your zsh. just run `ddg` or `google` + - [`zsh-you-should-use`](https://github.com/MichaelAquilina/zsh-you-should-use) - Usefull plugin that suggest existing aliases for a command you just ran (try it out with `ls -l`) + - [`zsh-autosuggestions`](https://github.com/zsh-users/zsh-autosuggestions) - Suggestions based on your history + - [`git`](https://github.com/davidde/git) - Usefull git aliases + - [`zsh-syntax-highlighting`](https://github.com/zsh-users/zsh-syntax-highlighting) - Syntax highlighting for ZSH + - [`powerlevel10k`](https://github.com/romkatv/powerlevel10k) theme - The the actual theme + - [`pure`](https://github.com/sindresorhus/pure) - Pure shell look for zsh ### Recomended for `powerlevel10k` - [`nerd-fonts`](https://github.com/ryanoasis/nerd-fonts "nerd-fonts github page") - I recomend `MesloLGS NF Regular` + - On Arch you can use `ttf-meslo-nerd-font-powerlevel10k` so you don't have to donwload the whole git repository ## Set as default To set zsh as default shell for your user, edit `/etc/passwd` (from `/bin/bash` to `/bin/zsh`) ### There are two ways: #### Running this command: -<<<<<<< HEAD -```chsch $USER``` - -======= - ```chsch $USER``` - Input your password - Input `/bin/zsh` ->>>>>>> master + #### Modifying `/etc/passwd` * Change your user in `/etc/passwd` to `/bin/zsh` instead of `/bin/bash`
@@ -70,6 +63,3 @@ To set zsh as default shell for your user, edit `/etc/passwd` (from `/bin/bash` To: ...`:/bin/zsh`
- -## What I used -My config is based on Chris Titus's config, `powerlevel10k` theme and `pure` From fa4d1907e022906b8995ea8f267808a54ab6b422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sun, 9 Jan 2022 13:38:13 +0100 Subject: [PATCH 2/3] Get rid of error if `thefuck` is not installed --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 87ea32e..c725632 100644 --- a/zshrc +++ b/zshrc @@ -37,7 +37,7 @@ export YSU_MESSAGE_POSITION="after" [ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc" # Initialize `thefuck` -eval $(thefuck --alias) +eval $(thefuck --alias) 2>/dev/null # Load ; should be last. source $HOME/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null From 2fc79eb99ad30858e4b585ea11ce5494a7c13296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sun, 9 Jan 2022 13:41:48 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c5b8091..1a044ef 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,9 @@ ln -s ~/zsh/zshrc.pure ~/.zsh - [`powerlevel10k`](https://github.com/romkatv/powerlevel10k) theme - The the actual theme - [`pure`](https://github.com/sindresorhus/pure) - Pure shell look for zsh +### Install from your distribution's repository + - [`thefuck`](https://github.com/nvbn/thefuck) - Corrects errors in previous console commands (when you mess up a command, type `fuck`) + ### Recomended for `powerlevel10k` - [`nerd-fonts`](https://github.com/ryanoasis/nerd-fonts "nerd-fonts github page") - I recomend `MesloLGS NF Regular` - On Arch you can use `ttf-meslo-nerd-font-powerlevel10k` so you don't have to donwload the whole git repository