https://github.com/brainstone/zsh-customization
These are my zsh settings and customizations. Will probably spend waaaaay too much time on that, but oh well...
https://github.com/brainstone/zsh-customization
Last synced: 4 months ago
JSON representation
These are my zsh settings and customizations. Will probably spend waaaaay too much time on that, but oh well...
- Host: GitHub
- URL: https://github.com/brainstone/zsh-customization
- Owner: BrainStone
- License: gpl-3.0
- Created: 2022-01-14T23:09:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-16T00:38:33.000Z (over 1 year ago)
- Last Synced: 2025-02-16T01:23:26.868Z (over 1 year ago)
- Language: Shell
- Size: 205 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsh-customization
These are my zsh settings and customizations. Will probably spend waaaaay too much time on that, but oh well...
## Installing
Installing this is super straight forward!
Make sure you have the following commands installed:
- `curl`
- `git`
- `route`
- `sudo` (if you install it globally)
- `zsh`
Command to install all those packages (on Debian based distros):
```sh
sudo apt install curl git net-tools sudo zsh
```
Following commands are recommended:
- `bat`/`batcat`
- `btop`
- `direnv`
- `thefuck`
Command to install all those packages (on Debian based distros):
```sh
sudo apt install bat btop direnv thefuck
```
Then just run the install.sh:
```sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/BrainStone/zsh-customization/master/install.sh)"
```
### Set zsh as default shell
To set zsh as your default shell run:
```
chsh --shell "$(which zsh)"
```
## Font
This theme uses the special font of powerlevel10k.
Follow these instructions to download and configure the font: https://github.com/romkatv/powerlevel10k/tree/21e89cb61d9ed240c1ddf6dd09ce306e7c9cf437#meslo-nerd-font-patched-for-powerlevel10k
## Special variables
All variables are considered active, when they are set and are not set to `false`, `no` or `0`.
Every other value (including an empty string) considers the variable set:
| Value
(quotes are a visual help and are not part of the variables) | Set? |
|--------------------------------------------------------------------------------------|------|
| `"true"` | yes |
| `""` | yes |
| `"yes"` | yes |
| `"1"` | yes |
| `"banana"` | yes |
| \ | no |
| `"false"` | no |
| `"no"` | no |
| `"0"` | no |
If you want to persist these settings, it is recommended that you add this to your `~/.zshrc_local`:
`export =true` to set or `export =false` to unset, though they all default to unset.
To temporarily try *setting* the variable (persists until you completely reopen the terminal):
`=true exec zsh`
To temporarily try *unsetting* the variable (persists until you completely reopen the terminal):
`=false exec zsh`
| Variable | Function |
|----------------------------|-------------------------------------------|
| `ZSH_DISABLE_UPDATE_CHECK` | If set the theme won't check for updates. |
| `ZSH_FORCE_TTY` | If set TTY mode is forced. |
| `ZSH_NO_BASHRC` | If set the bashrc will not be sourced. |