From 60b8dd1e352734f3c8d09de4ed1a906356ee27dc Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 29 Nov 2015 23:04:37 +0100 Subject: [PATCH 1/8] Fixing v command. --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 0ab3ab6..0a6fff3 100644 --- a/zshrc +++ b/zshrc @@ -44,7 +44,7 @@ alias poweroff='sudo poweroff' alias reboot='sudo reboot' alias n='ninja' alias cmake='cmake -G Ninja' -if test -f $(which nvim) +if test -f "$(which nvim)" then alias v='nvim' else From d5d7467d454e591be63b82a2a128a089152a629c Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 3 Dec 2015 13:41:42 +0100 Subject: [PATCH 2/8] Adding sudo to clear-orphans. --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 0a6fff3..f4c72ac 100644 --- a/zshrc +++ b/zshrc @@ -23,7 +23,7 @@ alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run' alias ssh='ssh ' alias ping='ping ' 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 chibernate='cinnamon-screensaver-command --lock && sudo systemctl hibernate' alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt' From a75eb02c3673976dce8cd20366afdf7be5c1dadd Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 3 Dec 2015 13:42:05 +0100 Subject: [PATCH 3/8] Adding checking integrity on tarsnap before deleting. --- zsh_functions | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh_functions b/zsh_functions index d02f3e7..b75a19f 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,6 +85,7 @@ virtual_env_prompt() { } delete-old-archives() { + sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}") From d7840b0eaf296c474853e7d69117152f562ffd19 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 5 Dec 2015 09:27:51 +0100 Subject: [PATCH 4/8] Making sysupgrade available for all platforms. --- zsh_functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh_functions b/zsh_functions index b75a19f..405e06b 100644 --- a/zsh_functions +++ b/zsh_functions @@ -3,10 +3,10 @@ twitch() { } 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 - new_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') - if [[ $old_kernel != $new_kernel ]] + new_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }') + if [[ $old_kernel != $new_kernel && $(uname -m) == 'armv7l' ]] then sudo mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd fi From c71ab870c9f32690a32fe4f91fa37714a1f021a5 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 10 Dec 2015 10:59:07 +0100 Subject: [PATCH 5/8] Added old-abi function to find packages belonging to the old C++ ABI --- zsh_functions | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh_functions b/zsh_functions index 405e06b..8646175 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,7 +85,6 @@ virtual_env_prompt() { } delete-old-archives() { - sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}") @@ -109,3 +108,11 @@ update-mirrors() { sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist" 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 +} From 330ff1dd2318ac7d42b6d54890490776d8ee955e Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 12 Dec 2015 14:31:26 +0100 Subject: [PATCH 6/8] Added WLAN Alias. --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index f4c72ac..b3f0a94 100644 --- a/zshrc +++ b/zshrc @@ -44,6 +44,7 @@ alias poweroff='sudo poweroff' alias reboot='sudo reboot' alias n='ninja' alias cmake='cmake -G Ninja' +alias wlan='sudo netctl-auto list' if test -f "$(which nvim)" then alias v='nvim' From aa15d4772a5e908af0352bceb376f8de37f316dd Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 12 Dec 2015 18:08:43 +0100 Subject: [PATCH 7/8] Added adb-connect alias. --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index b3f0a94..5a50fbb 100644 --- a/zshrc +++ b/zshrc @@ -45,6 +45,7 @@ alias reboot='sudo reboot' alias n='ninja' alias cmake='cmake -G Ninja' alias wlan='sudo netctl-auto list' +alias adb-connect='adb connect 192.168.1.138:5555' if test -f "$(which nvim)" then alias v='nvim' From acdbef48789caebdfde5b5837e0952c6633bc9f7 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 10 Jan 2016 22:49:15 +0100 Subject: [PATCH 8/8] Updating PATH for new ruby version. --- zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 5a50fbb..090a897 100644 --- a/zshrc +++ b/zshrc @@ -68,14 +68,13 @@ then fi source ~/.zsh_functions export EDITOR=vim -export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.1.0/bin alias emacs='emacs -nw' alias aiawiki='ssh aia -L 80:ldap2:80' alias rbtv='livestreamer twitch.tv/rocketbeanstv &' alias taketv='livestreamer twitch.tv/taketv &' alias ls='ls --color=auto' 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 #vi mode