diff --git a/zsh_functions b/zsh_functions index 3e4ab0f..26eb8ea 100644 --- a/zsh_functions +++ b/zsh_functions @@ -2,17 +2,6 @@ twitch() { livestreamer "twitch.tv/$1" & } -_sysupgrade(){ - old_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }') - pacmatic -Syu - new_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }') - if [[ $old_kernel != $new_kernel && $(uname -m) == 'armv7l' ]] - then - mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd - fi - cower -u -} - copy_img_to_usb(){ if [[ $1 = "" ]] then diff --git a/zshrc b/zshrc index af42bdd..c1a988f 100644 --- a/zshrc +++ b/zshrc @@ -53,9 +53,10 @@ alias m='make' alias cmake='cmake -G Ninja' alias wlan='sudo netctl-auto list' alias adb-connect='adb connect 192.168.1.138:5555' -alias sysupgrade='sudo zsh -ci _sysupgrade' +alias sysupgrade='sudo pacmatic -Syu; cower -u' alias delete-old-archives='sudo zsh -ci _delete-old-archives' alias clean-paccache='sudo -s -- paccache -r; paccache -ruk0' +alias krypto="ssh -t azure screen -r" if test -f "$(which nvim)" then alias v='nvim'