Skip to content

Instantly share code, notes, and snippets.

@Piyoshi
Last active February 18, 2022 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Piyoshi/4e5f6e14132d8dfe0f18f6c858192e81 to your computer and use it in GitHub Desktop.
Save Piyoshi/4e5f6e14132d8dfe0f18f6c858192e81 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir $HOME/Resource
git clone https://github.com/Piyoshi/dotfiles.git $HOME/Resource/dotfiles
cp $HOME/Resource/dotfiles/.alias $HOME/alias
echo "
if [ -f $HOME/alias ]; then
source $HOME/alias
fi
" >> $HOME/.myshrc
mkdir -p $HOME/.vim
mkdir -p $HOME/.vim/after/ftplugin
wget https://gist.githubusercontent.com/Piyoshi/a923a8fe776cd3492a7cb2504313f96d/raw/4ca9b467a2e5b45c62f22df80dc6508c851f97a3/vimrc -O $HOME/vimrc
ln -s $HOME/vimrc $HOME/.vimrc
ln -s $HOME/Resource/dotfiles/.vim/autoload $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/bundle $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/colors $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/dict $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/filetype.vim $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/ftplugin $HOME/.vim/
ln -s $HOME/Resource/dotfiles/.vim/plugin $HOME/.vim/
cp $HOME/.vim/ftplugin/php.vim $HOME/.vim/after/ftplugin/
mkdir -p $HOME/.vim/repos
mkdir -p $HOME/.vim/dein
git clone https://github.com/Shougo/dein.vim.git $HOME/.vim/repos/dein.vim
git clone https://github.com/tomasr/molokai.git $HOME/.vim/repos/molokai.git
ln -s $HOME/.vim/repos/molokai.git/colors/molokai.vim $HOME/.vim/colors/
brew tap sanemat/font
brew install ricty --with-powerline
cp -f /usr/local/opt/ricty/share/fonts/Ricty*.ttf ~/Library/Fonts/
fc-cache -vf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment