Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Zshell configuration #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Here's a more stylish version of [Bash-Oneliner](https://onceupon.github.io/Bash
- [Hardware](#hardware)
- [Networking](#networking)
- [Data Wrangling](#data-wrangling)
- [Zshell](#zshell)
- [Others](#others)

## Terminal Tricks
Expand Down Expand Up @@ -2991,6 +2992,81 @@ while read a b; do yes $b |head -n $a ; done <test.txt
```


<<<<<<< HEAD
=======
## Zshell
[[back to top](#handy-bash-one-liners)]

##### Steps to configure zsh on a Unix-like operating system:
##### Install Zsh:
```bash
sudo apt-get install zsh
```

##### Set Zsh as default shell (if you wish to):
```bash
chsh -s /bin/zsh
```

##### Install Oh My Zsh:
```bash
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
##### Customize your Zsh configuration (edit the configuration file located at ~/.zshrc to customize your Zsh shell):
#### Plugins:
```bash
plugins=(git)
```
<details>
<summary>More plugins</summary>
<ul>
<li>git: provides aliases and functions for working with Git repositories.</li>
<li>z: allows you to quickly navigate to frequently used directories by remembering the directories you have visited.</li>
<li>autosuggestions: suggests previously entered commands as you type based on your command history.</li>
<li>syntax-highlighting: highlights commands in color as you type them in the terminal.</li>
<li>history-substring-search: allows you to search through your command history by typing a partial command.</li>
<li>colored-man-pages: colors man pages for easier reading.</li>
<li>docker: adds autocomplete and aliases for Docker commands.</li>
<li>kubectl: adds autocomplete and aliases for Kubernetes commands.</li>
<li>node: adds shortcuts for common Node.js commands.</li>
<li>npm: adds shortcuts for common npm commands.</li>
<li>vscode: adds shortcuts for launching VS Code from the terminal.</li>
<li>tmux: adds shortcuts for working with tmux sessions and panes.</li>
<li>fasd: allows you to quickly navigate to frequently used directories and files by remembering the files and directories you have visited.</li>
</ul>
</details>

#### Themes:
```bash
ZSH_THEME="agnoster"
```
<details>
<summary>More themes</summary>
<ul>
<li>agnoster - Displays important information in bright colors against a dark background.</li>
<li>bira - Minimalist theme that displays basic information such as the current directory, Git branch, and exit status.</li>
<li>robbyrussell - Simple, clean theme that displays the current directory and Git branch.</li>
<li>fishy - Elegant and minimal theme with fish-like color scheme.</li>
<li>lambda - Displays current directory, Git branch, Python virtual environment, and other useful information.</li>
<li>powerlevel9k - Highly customizable theme that allows you to display a lot of information in a compact space.</li>
<li>spaceship - Clean and minimal theme that displays information in a user-friendly way.</li>
<li>ys - Simple theme that displays the current directory and Git branch, with a subtle color scheme.</li>
</ul>
</details>

#### Aliases:
```bash
alias ls='ls --color=auto'
```

##### Restart Zsh:
#### This will reload your Zsh configuration without needing to log out and log back in:
```bash
source ~/.zshrc
```


>>>>>>> f551098 (Signed-off-by: yashwankhede <[email protected]>)
## Others
[[back to top](#handy-bash-one-liners)]

Expand Down