This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run with 'sudo'" | |
exit | |
fi | |
LOGGED_USER=$(logname) | |
set -x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am oliverhr on github. | |
* I am oliverhr (https://keybase.io/oliverhr) on keybase. | |
* I have a public key ASDRdBHb-NhF_HM6hhEAsym22zsqBZi2ZJUJ_zXbHAFPVAo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------- | |
# geekster.zsh-theme | |
# https://github.com/oliverhr | |
# --------------------------------------- | |
local return_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)%{$reset_color%}" | |
function get_pwd(){ | |
git_root=$PWD | |
while [[ $git_root != / && ! -e $git_root/.git ]]; do |