Last active
March 22, 2020 20:13
-
-
Save black7375/a86fb12d47b1b2c9e3a2012b2a27a0f5 to your computer and use it in GitHub Desktop.
BVZSH Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## == Brew Package Install ==================================================== | |
BRW_PACKAGE_NAME="autojump fzf ripgrep thefuck" | |
export PATH="$PATH:/home/linuxbrew/.linuxbrew/bin/" | |
{ | |
brew install $BRW_PACKAGE_NAME | |
} || { | |
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
brew vendor-install ruby | |
brew install $BRW_PACKAGE_NAME | |
} | |
$(brew --prefix)/opt/fzf/install | |
## == Zsh Setting ============================================================= | |
BVZSH=~/.zsh | |
mkdir $BVZSH/cache | |
zshrc=~/.zshrc | |
zshenv=~/.zshenv | |
zlogin=~/.zlogin | |
zprofile=~/.zprofile | |
profile=~/.profile | |
set_file() | |
{ | |
local file=$1 | |
echo "-------" | |
echo "Set $file !!" | |
echo "" | |
if [ -e $file ]; then | |
echo "$file found." | |
echo "Now Backup.." | |
cp -v $file $file.bak | |
echo "" | |
else | |
echo "$file not found." | |
touch $file | |
echo "$file is created" | |
echo "" | |
fi | |
} | |
set_file $zshrc | |
set_file $zshenv | |
set_file $zlogin | |
echo "source $BVZSH/BlaCk-Void.zshrc" >> $zshrc | |
echo "source $BVZSH/BlaCk-Void.zshenv" >> $zshenv | |
echo "source $BVZSH/BlaCk-Void.zlogin" >> $zlogin | |
if [ -e $profile ]; then | |
cat ~/.profile | tee -a $zprofile | |
fi | |
echo "ZSH as the default shell(need sudo permission)" | |
chsh -s $(which zsh) | |
## == Plugin Setting ========================================================== | |
mkdir ~/.zplugin | |
git clone https://github.com/zdharma/zinit.git ~/.zplugin/bin | |
curl -L $BVZSH https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping > $BVZSH/prettyping | |
chmod +x $BVZSH/prettyping | |
## == Font Setting ============================================================ | |
fontDir="/usr/share/fonts/" | |
cd $fontDir | |
sudo curl -fLo "Hack Bold Nerd Font Complete.ttf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Hack/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete.ttf | |
sudo curl -fLo "Hack Bold Italic Nerd Font Complete.ttf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Hack/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete.ttf | |
sudo curl -fLo "Hack Italic Nerd Font Complete.ttf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Hack/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete.ttf | |
sudo curl -fLo "Hack Regular Nerd Font Complete.ttf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf | |
sudo chmod 644 Hack* | |
fc-cache -f -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment