zsh-settings/README.md

65 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

2021-11-28 23:58:29 +01:00
# zsh-settings
2021-12-02 10:38:56 +01:00
<p align="center">
<img src="https://git.gc4.at/linux/zsh-settings/media/branch/master/zsh.png">
</p>
2021-12-02 10:43:56 +01:00
- Install Requirements
- Arch
2024-04-17 11:19:35 +02:00
- `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/.`
2021-12-02 10:43:56 +01:00
2021-11-29 13:41:28 +01:00
- Ubuntu:
2021-12-04 14:58:18 +01:00
- `apt install zsh ruby ruby-deb fzf snap`
- `snap install bpytop`
2021-12-02 10:43:56 +01:00
- `cd /opt`
- `git clone https://git.gc4.at/linux/nerd-fonts.git`
- `cd nerd-fonts && ./install.sh`
- `gem install colorls`
2021-11-29 00:12:46 +01:00
- Install
2021-12-03 12:11:11 +01:00
- mkdir ~/.dotfiles
- cd ~/.dotfiles
2021-12-02 10:43:56 +01:00
- `git clone --recurse-submodules -j8 https://git.gc4.at/linux/zsh-settings.git`
- Use ssh if you want to commit also:
2021-12-21 08:23:01 +01:00
`git clone --recurse-submodules -j8 SSH URL`
2021-11-29 11:29:02 +01:00
- --recurse-submodules -j8 is important since .oh-my-zsh and .oh-my-zsh/custom/plugins are also remote repos (int his repo) = submodules
2021-12-02 10:43:56 +01:00
- `cd ~`
- `mv .zshrc .zshrc_old && mv .p10k.zsh .p10k.zsh_old && mv .oh-my-zsh .oh-my-zsh_old`
2021-12-03 12:11:11 +01:00
- `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`
2021-11-29 12:08:17 +01:00
- Update (Submodules included)
2021-12-03 12:11:11 +01:00
- `cd ~/.dotfiles/zsh-settings`
2021-12-04 15:03:41 +01:00
- `git pull --recurse-submodules`
2021-12-02 10:43:56 +01:00
- `cd /opt/nerd-fonts && git pull && .install.sh`
- `gem update colorls`
2021-12-02 10:25:09 +01:00
- Change default Shell
2021-12-02 10:25:56 +01:00
- Switch default shell in your terminal
2021-12-02 10:25:09 +01:00
- Bsp. KDE Konsole: Settings > Configure Konsole > Profiles > Edit > Command > /usr/bin/zsh
2021-12-02 10:25:41 +01:00
- /etc/passwd
2021-12-02 12:37:46 +01:00
- Change /`usr/bin/bash` to `/usr/bin/zsh` in `/etc/passwd` for your user
2021-12-02 10:25:41 +01:00
- AD/Ldap User
2021-12-02 12:37:46 +01:00
- 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
2021-11-29 13:41:28 +01:00
- 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
2021-11-29 15:09:09 +01:00
- https://git.gc4.at/linux/zsh-syntax-highlighting