zsh-settings/README.md
karamelmar bbf5b38684 Update README.md
Manual Nerd-Fonts for p10k
2024-04-17 11:57:55 +02:00

64 lines
2.9 KiB
Markdown

# zsh-settings
<p align="center">
<img src="https://git.gc4.at/linux/zsh-settings/media/branch/master/zsh.png">
</p>
- Install Requirements
- Arch
- `yay -S zsh ruby nerd-fonts-complete ttf-meslo-nerd-font-powerlevel10k fzf bpytop`
- `gem install colorls`
- `sudo cp /home/$USER/.local/share/gem/ruby/3.0.0/bin/colorls /usr/local/bin/.`
- Ubuntu:
- `apt install zsh ruby ruby-deb fzf snap`
- `snap install bpytop`
- `cd /opt`
- `git clone https://git.gc4.at/linux/nerd-fonts.git`
- `cd nerd-fonts && ./install.sh`
- `gem install colorls`
- Install
- mkdir ~/.dotfiles
- cd ~/.dotfiles
- `git clone --recurse-submodules -j8 https://git.gc4.at/linux/zsh-settings.git`
- Use ssh if you want to commit also:
`git clone --recurse-submodules -j8 SSH URL`
- --recurse-submodules -j8 is important since .oh-my-zsh and .oh-my-zsh/custom/plugins are also remote repos (int his repo) = submodules
- `cd ~`
- `mv .zshrc .zshrc_old && mv .p10k.zsh .p10k.zsh_old && mv .oh-my-zsh .oh-my-zsh_old`
- `ln -s .dotfiles/zsh-settings/.zshrc`
- `ln -s .dotfiles/zsh-settings/.p10k.zsh`
- `ln -s .dotfiles/zsh-settings/.oh-my-zsh`
- `sudo su`
- `cd /usr/share/fonts/TTF`
- `wget https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf && wget https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Bold.ttf && wget https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Italic.ttf && wget https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Bold%20Italic.ttf`
- Update (Submodules included)
- `cd ~/.dotfiles/zsh-settings`
- `git pull --recurse-submodules`
- `cd /opt/nerd-fonts && git pull && .install.sh`
- `gem update colorls`
- Change default Shell
- Switch default shell in your terminal
- Bsp. KDE Konsole: Settings > Configure Konsole > Profiles > Edit > Command > /usr/bin/zsh
- /etc/passwd
- Change /`usr/bin/bash` to `/usr/bin/zsh` in `/etc/passwd` for your user
- AD/Ldap User
- AD/Ldap Users do no have an entry, so you need to grep it from AD/LDAP wit `getent passwd USERNAME` and then paste it into `/etc/passwd`
- Import bash history with ruby script
- `ruby ~/.dotfiles/zsh-settings/bash_to_zsh_history.rb`
- Confirmation dialog on reboot / poweroff / shutdown
- If you want to disable the confirmation dialog for reboots / shutdowns, comment out the aliases in .zshrc
- Sources:
- Check the Repos for instructions:
- https://git.gc4.at/linux/nerd-fonts
- https://git.gc4.at/linux/ohmyzsh
- https://git.gc4.at/linux/colorls
- https://git.gc4.at/linux/powerlevel10k
- https://git.gc4.at/linux/zsh-autosuggestions
- https://git.gc4.at/linux/zsh-syntax-highlighting