My ZSH Config
This repository has been archived on 2024-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2022-01-09 14:09:13 +01:00
git@b60e5e36c6 Add plugins to my config 2022-01-09 04:42:33 +01:00
oh-my-zsh-dirhistory Add plugins to my config 2022-01-09 04:42:33 +01:00
powerlevel10k@f2bf019758 Moving from pure zsh to powerlevel10k 2020-10-09 20:30:40 +02:00
pure@c42bd35494 fix directory structure 2020-06-01 11:30:25 -05:00
ssh-connect@788d90f761 Add plugins to my config 2022-01-09 04:42:33 +01:00
web-search@e2c498dc9d Add plugins to my config 2022-01-09 04:42:33 +01:00
zsh-autosuggestions@ae315ded4d Added zsh-autosuggestions as git submodule 2020-06-08 18:40:50 +02:00
zsh-syntax-highlighting@6fd92e1bbd Added zsh-syntax-highlighting 2020-06-08 18:50:03 +02:00
zsh-you-should-use@773ae5f414 Add plugins to my config 2022-01-09 04:42:33 +01:00
zsh-z@b5e61d03a4 Add zsh-z plugin instead of autojump 2022-01-09 04:52:26 +01:00
.gitmodules Convert submodules from ssh to https 2022-01-09 12:34:55 +01:00
aliasrc Fix the error that appears when thefuck is not installed 2022-01-09 14:05:25 +01:00
README.md Update README.md 2022-01-09 13:41:48 +01:00
zshrc Merge branch 'master' of github.com:jiriks74/zsh 2022-01-09 14:09:13 +01:00
zshrc.pure Merge branch 'master' of https://github.com/ChrisTitusTech/zsh into ChrisTitusTech-master 2021-11-14 19:08:23 +01:00

ZSH

My ZSH config

Setup

  • Clone the repository to your home folder
cd ~
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
zsh
  • If configuration won't start automatically, just run
p10k config

pure shell theme

  • Link the zsh.pure file to your home folder as .zshrc
ln -s ~/zsh/zshrc.pure ~/.zsh

Get Dependancies

Included in this repository

  • zsh-z - ZSH plugin that is alternative to autojump. Use z dirnameto go to a specific directory on your system without having to type the whole path (eg z et will get you to /etc)
  • 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 - Plugin that logs your ssh commands and provides a nice menu with your recent connections (alias: sshc)
  • web-search - Allows you to DuckDuckGo, Google, etc. directly from your zsh. just run ddg or google
  • zsh-you-should-use - Usefull plugin that suggest existing aliases for a command you just ran (try it out with ls -l)
  • zsh-autosuggestions - Suggestions based on your history
  • git - Usefull git aliases
  • zsh-syntax-highlighting - Syntax highlighting for ZSH
  • powerlevel10k theme - The the actual theme
  • pure - Pure shell look for zsh

Install from your distribution's repository

  • thefuck - Corrects errors in previous console commands (when you mess up a command, type fuck)

Recomended for powerlevel10k

  • nerd-fonts - 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:

  • chsch $USER
  • Input your password
  • Input /bin/zsh

Modifying /etc/passwd

  • Change your user in /etc/passwd to /bin/zsh instead of /bin/bash
  • Find line containing your username

  • Change the end of the line From: ...:/bin/bash

    To: ...:/bin/zsh