I ran composer install today, and was rather surprised to find that the
intl module wasn’t installed?! Then I remembered I had installed package updates etc, and it turned out I had BOTH PHP 7.3 AND PHP 7.4 installed!
All my sites were developed on 7.3, so I had to switch back.
update-alternatives --list php
Typing that command in will output something like this:
Now you can see the available versions. To switch versions, I simply typed
sudo update-alternatives --set php /usr/bin/php7.3
Easy. Create an alias:
git config --global alias.tree "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative"
then just run
If you are using the Bash terminal, or the Mac OSX Terminal, time to get rid of it! You need Zsh! (pronounced zoosh). From the Github page:
Oh My Zsh is an open source, community-driven framework for managing your zsh configuration. That sounds boring. Let's try this again.
Oh My Zsh is a way of life! Once installed, your terminal prompt will become the talk of the town or your money back! Each time you interface with your command prompt, you'll be able take advantage of the hundreds of bundled plugins and pretty themes. Strangers will come up to you in cafés and ask you, "that is amazing. are you some sort of genius?" Finally, you'll begin to get the sort of attention that you always felt that you deserved. ...or maybe you'll just use the time that you saved to start flossing more often.
So, what are you waiting for? Give it a spin!
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Or using wget:
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
Well worth a try! https://github.com/robbyrussell/oh-my-zsh