Skip to content

Instantly share code, notes, and snippets.

View tonning's full-sized avatar

Laura Tonning tonning

  • 3Z Brands
  • Copenhagen, Denmark
  • 10:20 (UTC +02:00)
  • X @tonning
View GitHub Profile
@tonning
tonning / .zshrc
Created January 19, 2021 11:48
Switch PHP version in MacOS with Homebrew
installedPhpVersions=('7.1' '7.2' '7.3' '7.4', '8.0')
for phpVersion in ${installedPhpVersions[*]}; do
value="{"
for otherPhpVersion in ${installedPhpVersions[*]}; do
if [ "${otherPhpVersion}" != "${phpVersion}" ]; then
value="${value} brew unlink php@${otherPhpVersion};"
fi
done
# vim:ft=zsh ts=2 sw=2 sts=2
#
# Tonning's Theme
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@tonning
tonning / .gitconfig
Last active December 12, 2017 17:45
Git save and resume work in progress aliases
[alias]
save = "!f() { \
echo \"\\033[32mSaving Work in Progress...\"; \
git add . && git commit -m 'WIP'; \
}; f"
resume = "!f() { \
if [[ $(git log --format=%B -n 1 | grep WIP) == WIP ]]; then \
echo \"\\033[32mResuming Work in Progress...\"; \
git reset HEAD~; \
else \
@tonning
tonning / readme.md
Last active April 5, 2016 16:21
Frequently used Laravel packages