This commit is contained in:
Faerbit 2016-03-02 17:54:00 +01:00
commit 77105e0e4c
2 changed files with 16 additions and 7 deletions

View File

@ -3,10 +3,10 @@ twitch() {
} }
sysupgrade(){ sysupgrade(){
old_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') old_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }')
sudo pacmatic -Syu sudo pacmatic -Syu
new_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') new_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }')
if [[ $old_kernel != $new_kernel ]] if [[ $old_kernel != $new_kernel && $(uname -m) == 'armv7l' ]]
then then
sudo mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd sudo mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd
fi fi
@ -108,3 +108,11 @@ update-mirrors() {
sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist" sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
fi fi
} }
old-abi() {
for i in $(pacman -Qqm); do
if pacman -Qql $i | xargs readelf -d 2>/dev/null | grep -q libstdc++.so.6; then
echo $i;
fi;
done
}

9
zshrc
View File

@ -24,7 +24,7 @@ alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run'
alias ssh='ssh ' alias ssh='ssh '
alias ping='ping ' alias ping='ping '
alias aur-update='pacaur -Syu --devel --noconfirm' alias aur-update='pacaur -Syu --devel --noconfirm'
alias clear-orphans='pacman -Rns $(pacman -Qqdt)' alias clear-orphans='sudo pacman -Rns $(pacman -Qqdt)'
alias rmtex='rm *.log; rm *.aux' alias rmtex='rm *.log; rm *.aux'
alias chibernate='cinnamon-screensaver-command --lock && sudo systemctl hibernate' alias chibernate='cinnamon-screensaver-command --lock && sudo systemctl hibernate'
alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt' alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt'
@ -45,7 +45,9 @@ alias poweroff='sudo poweroff'
alias reboot='sudo reboot' alias reboot='sudo reboot'
alias n='ninja' alias n='ninja'
alias cmake='cmake -G Ninja' alias cmake='cmake -G Ninja'
if test -f $(which nvim) alias wlan='sudo netctl-auto list'
alias adb-connect='adb connect 192.168.1.138:5555'
if test -f "$(which nvim)"
then then
alias v='nvim' alias v='nvim'
else else
@ -67,14 +69,13 @@ then
fi fi
source ~/.zsh_functions source ~/.zsh_functions
export EDITOR=vim export EDITOR=vim
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.1.0/bin
alias emacs='emacs -nw' alias emacs='emacs -nw'
alias aiawiki='ssh aia -L 80:ldap2:80' alias aiawiki='ssh aia -L 80:ldap2:80'
alias rbtv='livestreamer twitch.tv/rocketbeanstv &' alias rbtv='livestreamer twitch.tv/rocketbeanstv &'
alias taketv='livestreamer twitch.tv/taketv &' alias taketv='livestreamer twitch.tv/taketv &'
alias ls='ls --color=auto' alias ls='ls --color=auto'
export ASPROOT=~/.asp export ASPROOT=~/.asp
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.2.0/bin export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.3.0/bin
export LFS=/mnt/lfs export LFS=/mnt/lfs
#vi mode #vi mode