Change sysupgrade
This commit is contained in:
parent
73551f4cec
commit
e979735005
@ -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
|
||||
|
3
zshrc
3
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'
|
||||
|
Loading…
Reference in New Issue
Block a user