Skip to content

Instantly share code, notes, and snippets.

@nicosomb
nicosomb / sphp.sh
Created October 24, 2016 20:33 — forked from w00fz/sphp.sh
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage

Voici mon dépôt git contenant la dernière version de oh_my_zsh, avec quelques commits locaux.

$ cd $ZSH
$ git branch -a
* local
  master
  remotes/origin/HEAD -> origin/master
$ git log --pretty=format:"%h %d %s" | head -4
0649746  (HEAD, local) rebase instead of git pull while upgrading