#!/bin/bash # this script is now cross-platform (Debian/Arch), so we don't install packages # install packages before executing, please see notes below: # # ubuntu/debian valid package names: "neovim exuberant-ctags wmctrl build-essential cmake python-dev php-codesniffer silversearcher-ag xsel" # some distros require xclip/xsel package for clipboard support # exuberant-ctags is ctags in Arch # ag is the_silver_searcher in Arch # install fzf git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install # clean Vim files cd ~ rm -Rf .vim* # get .vim dir and install plugins git clone --recursive https://github.com/johgh/vim .vim ln -s ~/.vim ~/.config/nvim # symlink .vimrc to $HOME ln -fs $HOME/.vim/vimrc $HOME/.vimrc nvim +PlugClean! +qall nvim +PlugInstall +qall # install some fonts cp -R $HOME/.vim/fonts/* $HOME/.local/share/fonts fc-cache -f $HOME/.local/share/fonts # configuring PSR (codesniffer) content=" 'PSR2', ) ?>" echo "$content" | sudo tee /etc/php-codesniffer/CodeSniffer.conf > /dev/null