# .funcs/if-linux-arch.sh
#
# Arch Linux-specific shell functions and aliases.
# Source this directly or source env.sh for everything,
# which will conditionally source this file.
#
# Brandon Amos
# http://bamos.github.io
# 2015/04/27

alias y='yaourt'
alias ys='yaourt -S --noconfirm'
alias yr='yaourt -R --noconfirm'
alias up='yaourt -Syua'
alias yup='up --noconfirm'
alias i-int='ip address show wlp3s0'

# .funcs/if-linux-arch.sh
#
# Arch Linux-specific shell functions and aliases.
# Source this directly or source env.sh for everything,
# which will conditionally source this file.
#
# Brandon Amos
# http://bamos.github.io
# 2015/04/27

alias y='yaourt'
alias ys='yaourt -S --noconfirm'
alias yr='yaourt -R --noconfirm'
alias up='yaourt -Syua'
alias yup='up --noconfirm'
alias i-int='ip address show wlp3s0'
alias rm-orphans='sudo pacman -Rns $(pacman -Qtdq)'

wlp3s0-mac() {
  ip -o link show wlp3s0 | \
    sed 's/.*ether \(\S*\).*/\1/g'
}

wlp3s0-ip() {
  ip -o addr show wlp3s0 | \
    head -n 1 | \
    sed 's/.*inet \(\S*\)\/.*/\1/g'
}

Add rm-orphans and wireless info.
Arch: Add rm-orphans and wireless info.
