Skip to content

Instantly share code, notes, and snippets.

@PiiXiieeS
Forked from anthonyaxenov/zsh-fancify.sh
Last active April 6, 2021 23:01
Show Gist options
  • Save PiiXiieeS/f8bca891d4b37e114d395520b1f84224 to your computer and use it in GitHub Desktop.
Save PiiXiieeS/f8bca891d4b37e114d395520b1f84224 to your computer and use it in GitHub Desktop.

Revisions

  1. PiiXiieeS revised this gist Mar 21, 2021. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions zsh-fancify.sh
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,7 @@ echo "1. Installing oh-my-zsh..."
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo ""
    echo "2. Installing powerlevel9k theme (legacy)..."
    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel9k/powerlevel9k"@g' ~/.zshrc

    echo ""
    echo "3. Installing powerline fonts..."
    echo "2. Installing powerline fonts..."
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mkdir -p ~/.local/share/fonts/
    @@ -28,6 +23,13 @@ fc-cache -vf ~/.local/share/fonts/
    mkdir -p ~/.config/fontconfig/conf.d/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

    echo ""
    echo "3. Installing powerlevel10k theme ..."
    git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
    # legacy them powerlevel9k
    # git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel10k/powerlevel10k"@g' ~/.zshrc

    echo ""
    echo "4. Installing autosuggestions and syntax highlighting..."
    git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
  2. @anthonyaxenov anthonyaxenov revised this gist Aug 26, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions zsh-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@
    #!/bin/bash
    echo "*********************************************"
    echo " zsh installer (vanilla)
    echo " zsh installer (vanilla)"
    echo "*********************************************"
    sudo apt-get update
    sudo apt-get install zsh -y
    chsh -s $(which zsh)

    echo "Log out of your session and login again. Then run setup-oh-my-zsh-powerlevel9k.sh"
    echo ""
    echo "Finish! Log out of your session and login again. Then run zsh-fancify.sh"
  3. @anthonyaxenov anthonyaxenov revised this gist Aug 26, 2020. 4 changed files with 46 additions and 14 deletions.
    10 changes: 0 additions & 10 deletions setup-oh-my-zsh-powerlevel9k.sh
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mkdir -p ~/.local/share/fonts/
    mv PowerlineSymbols.otf ~/.local/share/fonts/
    fc-cache -vf ~/.local/share/fonts/
    mkdir -p ~/.config/fontconfig/conf.d/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
    echo "Log out of your session and login again."
    4 changes: 0 additions & 4 deletions setup-zsh.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    sudo apt-get update
    sudo apt-get install zsh git curl -y
    chsh -s $(which zsh)
    echo "Log out of your session and login again. Then run setup-oh-my-zsh-powerlevel9k.sh"
    38 changes: 38 additions & 0 deletions zsh-fancify.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    #!/bin/bash
    # Based on:
    # https://github.com/Powerlevel9k/powerlevel9k/wiki/Install-Instructions
    # https://github.com/ohmyzsh/ohmyzsh
    # https://powerline.readthedocs.io/en/latest/installation/linux.html#fonts-installation
    # https://gist.github.com/dogrocker/1efb8fd9427779c827058f873b94df95
    # https://linuxhint.com/install_zsh_shell_ubuntu_1804/

    echo "*********************************************"
    echo " zsh fancifier"
    echo "*********************************************"
    echo ""
    echo "1. Installing oh-my-zsh..."
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    echo ""
    echo "2. Installing powerlevel9k theme (legacy)..."
    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    sed -i 's@^ZSH_THEME=.*$@ZSH_THEME="powerlevel9k/powerlevel9k"@g' ~/.zshrc

    echo ""
    echo "3. Installing powerline fonts..."
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mkdir -p ~/.local/share/fonts/
    mv PowerlineSymbols.otf ~/.local/share/fonts/
    fc-cache -vf ~/.local/share/fonts/
    mkdir -p ~/.config/fontconfig/conf.d/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

    echo ""
    echo "4. Installing autosuggestions and syntax highlighting..."
    git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    sed -i 's@plugins=(git)@plugins=(git zsh-autosuggestions zsh-syntax-highlighting)@g' ~/.zshrc

    echo ""
    echo "Finish! Log out of your session and login again."
    8 changes: 8 additions & 0 deletions zsh-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    echo "*********************************************"
    echo " zsh installer (vanilla)
    echo "*********************************************"
    sudo apt-get update
    sudo apt-get install zsh -y
    chsh -s $(which zsh)
    echo "Log out of your session and login again. Then run setup-oh-my-zsh-powerlevel9k.sh"
  4. @anthonyaxenov anthonyaxenov revised this gist Aug 26, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup-oh-my-zsh-powerlevel9k.sh
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,9 @@ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/i
    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mkdir ~/.local/share/fonts/
    mkdir -p ~/.local/share/fonts/
    mv PowerlineSymbols.otf ~/.local/share/fonts/
    fc-cache -vf ~/.local/share/fonts/
    mkdir ~/.config/fontconfig/conf.d/
    mkdir -p ~/.config/fontconfig/conf.d/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
    echo "Log out of your session and login again."
  5. @AlexZeitler AlexZeitler created this gist May 13, 2018.
    10 changes: 10 additions & 0 deletions setup-oh-my-zsh-powerlevel9k.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
    wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
    mkdir ~/.local/share/fonts/
    mv PowerlineSymbols.otf ~/.local/share/fonts/
    fc-cache -vf ~/.local/share/fonts/
    mkdir ~/.config/fontconfig/conf.d/
    mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
    echo "Log out of your session and login again."
    4 changes: 4 additions & 0 deletions setup-zsh.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    sudo apt-get update
    sudo apt-get install zsh git curl -y
    chsh -s $(which zsh)
    echo "Log out of your session and login again. Then run setup-oh-my-zsh-powerlevel9k.sh"