Shell scripts

To use all scripts

for f in ~/.scripts/*.sh; do source $f; done

Battery status

Display battery status in RPROMPT on iTerm2

⚠️ This scripts depends on zsh plugin from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/battery/battery.plugin.zsh

Battery plugged

Battery unplugged

Time

Display time in RPROMPT on iTerm2

Free disk space

⚠️ Read carefully to unsure this behave as you would like to.

An automate script to delete temporary files (including downloads if asked), cache from docker, composer, yarn, rubygems and homebrew. (check every command existance before asking/exec)

If ncdu is installed perform a check to give you a better understanding of how you use your disk.

Meteo

Just a command to curl on the excellent http://wttr.in

$ meteo Paris, France

Meteo report

What is my IP again?

Perform a curl on ifconfig.co

$ myip

Nano

If you try to open a protected file this will warn you and ask you to sudo your command. Courtesy of @christophehurpeau

Would you like to sudo ?