diff --git a/zsh_functions b/zsh_functions index 8d7e0a4..33dacdf 100644 --- a/zsh_functions +++ b/zsh_functions @@ -1,3 +1,7 @@ +twitch() { + livestreamer "twitch.tv/$1" & +} + sysupgrade(){ old_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') sudo pacmatic -Syu diff --git a/zshrc b/zshrc index e8e6b59..b39c61c 100644 --- a/zshrc +++ b/zshrc @@ -39,8 +39,12 @@ alias gdfs='git diff --staged' alias gad='git add' alias gcm='git commit' alias resource='source ~/.zshrc' +alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "time to empty"' alias poweroff='sudo poweroff' alias reboot='sudo reboot' +alias n='ninja' +alias cmake='cmake -G Ninja' +alias v='vim' if [ -f .zsh_environment ] then source ~/.zsh_environment