Use the dist-packaged apps
sudo apt install git php php-cli php-pear curl zsh
sudo apt install snapd
sudo snap login YOUR_EMAIL
snap install chromium docker gimp simplenote wavebox wordpress-desktop
snap install libreoffice
snap install gimp
snap install inkscape
snap install vlc
snap install simplenote
snap install wordpress-desktop
snap install --classic atom
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.uploadedlobster.peek
flatpak install flathub org.filezillaproject.Filezilla -y
git config --global user.name "YOUR_USER"
git config --global user.email YOUR_EMAIL
ssh-keygen -t rsa -C "YOUR_EMAIL"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
then paste into github settings.
sudo snap install node --classic --channel=10
to switch node versions...
sudo snap refresh node --channel=9
Ubuntu sometimes looks for nodejs
instead of node
. Let's make a symlink.
sudo rm /usr/bin/nodejs
sudo ln -s /snap/bin/node /usr/bin/nodejs
Correct the node path
npm config set scripts-prepend-node-path true
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Set ZSH as the default shell
sudo chsh -s $(which zsh) $(whoami)
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Make Global
sudo mv composer.phar /usr/local/bin/composer
composer global require "squizlabs/php_codesniffer=*"
git clone -b master https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs
Add its path to PHPCS configuration
phpcs --config-set installed_paths /home/marty/dotfiles/wpcs
check
phpcs -i