From 9b40dff65f50da28cd68d2dc6b9a7d9744f55362 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 18 Jun 2015 09:15:05 +0200 Subject: [PATCH 1/3] Adding battery command. --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index 4bc42a8..3ab1ae5 100644 --- a/zshrc +++ b/zshrc @@ -22,6 +22,7 @@ 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"' if [ -f .zsh_environment ] then source ~/.zsh_environment From b7a22164f007501cd79c4ed8e241555a21c38bf6 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 7 Nov 2015 21:17:45 +0100 Subject: [PATCH 2/3] Added twitch livestreamer shortcut. --- zsh_functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh_functions b/zsh_functions index bab6e2a..5102e6d 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 From ec46a368902f01e57f27b398068a465d3f40a510 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 7 Nov 2015 21:18:02 +0100 Subject: [PATCH 3/3] Adding some aliases. --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index da6a1db..5371b8f 100644 --- a/zshrc +++ b/zshrc @@ -43,6 +43,9 @@ 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