- Ubuntu
sudo apt update && sudo apt upgrade -y
sudo apt autoremove && sudo apt autoclean
- Fedora
sudo dnf upgrade
- Ubuntu
sudo apt install zsh ranger git wget
- Fedora
sudo dnf install zsh ranger git wget util-linux-user
mkdir -p ~/.config/zsh/plugins && mkdir -p ~/.cache/zsh
- Ubuntu
echo -e '\n\n# zsh\nexport ZDOTDIR="$HOME/.config/zsh"' >> ~/.profile
- Fedora
DO NOTHING
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf -P ./MesloLGS-NF
sudo mv MesloLGS-NF /usr/share/fonts
- Ubuntu
Set the shell font to MesloLGS NF Regular
- Fedora
Close and reopen the terminal
Set the shell font to MesloLGS NF Regular
zsh
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/autosuggestions && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/syntax-highlighting && git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/plugins/powerlevel10k
- Ubuntu
echo -e '\n\n# Plugins\nsource ~/.config/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme\nsource ~/.config/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh\nsource ~/.config/zsh/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.config/zsh/.zshrc
- Fedora
echo -e '\n\n# Plugins\nsource ~/.config/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme\nsource ~/.config/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh\nsource ~/.config/zsh/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
- Ubuntu
echo -e '\n\n# ranger-cd\nfunction ranger-cd {\n tempfile="$(mktemp -t tmp.XXXXXX)"\n /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"\n test -f "$tempfile" &&\n if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then\n cd -- "$(cat "$tempfile")"\n fi \n rm -f -- "$tempfile"\n}\n\n#ranger-cd will run by alt+r\nbindkey -s "^\\er" "ranger-cd\\n"' >> ~/.config/zsh/.zshrc
- Fedora
echo -e '\n\n# ranger-cd\nfunction ranger-cd {\n tempfile="$(mktemp -t tmp.XXXXXX)"\n /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"\n test -f "$tempfile" &&\n if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then\n cd -- "$(cat "$tempfile")"\n fi \n rm -f -- "$tempfile"\n}\n\n#ranger-cd will run by alt+r\nbindkey -s "^\\er" "ranger-cd\\n"' >> ~/.zshrc
- for
root
sudo -s
chsh -s /bin/zsh root
exit
- for
user
chsh -s /bin/zsh $USER