aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-04-12 14:25:30 +0200
committerDavid Runge <david.runge@frqrec.com>2014-04-12 14:25:30 +0200
commit21c83ed59fefe49ce2ab84882eb2287dda783c4e (patch)
tree6b35ed957d01b9455b8b25e179b3efef8ce8f7f4
parent9b5f5aa1c59e29910abba0fb2a594b1bacb30897 (diff)
downloaddotfiles-21c83ed59fefe49ce2ab84882eb2287dda783c4e.tar.gz
dotfiles-21c83ed59fefe49ce2ab84882eb2287dda783c4e.tar.bz2
dotfiles-21c83ed59fefe49ce2ab84882eb2287dda783c4e.tar.xz
dotfiles-21c83ed59fefe49ce2ab84882eb2287dda783c4e.zip
Adding further splitting of host specific configs.
-rw-r--r--.zsh.after/giev37
-rw-r--r--.zsh.after/hostspecific.zsh2
-rw-r--r--.zsh.after/unixpool39
3 files changed, 2 insertions, 76 deletions
diff --git a/.zsh.after/giev b/.zsh.after/giev
index 7ca9f12..e69de29 100644
--- a/.zsh.after/giev
+++ b/.zsh.after/giev
@@ -1,37 +0,0 @@
-#TODO: add pacman to apt-get conversion for all pacman aliases
-alias paclid="sudo pacman -Qi | sed '/^Depends On/,/^Required By/{ s/^Required By.*$//; H; d }; /^Name/!d; /^Name/{ n;x;}'| sed '/^$/s//==================================================================================/'"
-alias pacsize="pacman -Qi | awk '/^Name/ {pkg=\$3} /Size/ {print \$4\$5,pkg}' | sort -n" #All packages by size
-alias pacall="sudo pacman -Qi | awk '/^Name/ {pkg=\$3} /Version/ {ver=\$3} /Size/ {size=\$4\$5} {print pkg,ver,size}' | uniq" #All packages uniquely with name, version, size
-#alias pacremorph='sudo pacman -Rs $(pacman -Qtdq)' #Remove all orphaned packages
-alias pacup='sudo apt-get update && sudo apt-get upgrade' #'sudo pacman -Syu' # Synchronize with repositories before upgrading packages that are out of date on the local system.
-alias pac='sudo apt-get install ' #'sudo pacman -S' # Install specific package(s) from the repositories
-alias pacu='sudo pacman -U' # Install specific package not from the repositories but from a file
-alias pacre='sudo apt-get remove ' #'sudo pacman -R' # Remove the specified package(s), retaining its configuration(s) and required ##dependencies
-alias pacrem='sudo apt-get purge ' #'sudo pacman -Rns' # Remove specified package(s), its configuration(s) and unneeded depends
-alias pacsearch="pacman -Sl | cut -d' ' -f2 | grep " # Search through all available packages in repo
-#alias pacname='dpkg -l|grep Name|grep ' #'sudo pacman -Qi|grep Name|grep ' #Search through names of packages by string
-alias pacri='sudo apt-get update && sudo apt-cache show ' #'pacman -Si' # Display information about a given package in the repositories
-alias pacrs='sudo apt-get update && sudo apt-cache search ' #'pacman -Ss' # Search for package(s) in the repositories
-alias pacli='dpkg -l ' #'pacman -Qi' # Display information about a given package in the local database
-alias pacls='dpkg -l|grep ' #'pacman -Qs' # Search for package(s) in the local database
-alias pacorph='sudo pacman -Qdt' # Search for orphan packages
-alias paclist='dpkg -L' #'sudo pacman -Ql' # List installed files of a given package
-alias pacg='pacman -Sg' #List all groups or all packages in specified group
-alias pacclean='sudo pacman -Sc' # Remove all packages from local repository, not installed atm, remove all unused repos
-alias pacconf='sudo find /etc -name "*.pac*" -type f -print' # Search for .pacnew and .pacsave files
-alias pacfile='dpkg -S ' #'sudo pacman -Qo' # Find out what package a give file belongs to
-alias pacupd='sudo apt-get update' #'sudo pacman -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories
-alias pacdep='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package
-alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
-alias packup='comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > $HOME/Dropbox/sync/archlinux/pkglist-$HOST' # Backup the current list of non-local packages
-alias pacret='sudo pacman -S $(< $HOME/Dropbox/sync/archlinux/pkglist-$HOST)' # Install from the backup list
-alias pacredown='sudo pacman -S $(comm -23 <(pacman -Qeq) <(pacman -Qmq))' # Redownload all installed packages (minus AUR)
-alias pacdis='rm -f $HOME/Dropbox/sync/archlinux/non-pkg-$HOST; sudo pacman-disowned > $HOME/Dropbox/sync/archlinux/non-pkg-$HOST' # Getting a list of files not owned by any package
-alias packimp='sudo pacman-key -r ' #Import a key ID to the pacman keyring
-alias packsign='sudo pacman-key --lsign-key ' #Sign a key ID after importing it to the keyring
-alias packref='sudo pacman-key --refresh-keys' #Refresh the list of master keys
-
-##Yaourt aliases
-alias yaup='yaourt -Syu --devel --aur' # Updates all locally installed repository, AUR and git packages
-alias yadb='yaourt -B $HOME/Dropbox/sync/archlinux' # Backs up the yaourt database
-alias ya='sudo apt-get -t testing install ' # Install packages from AUR/Testing
diff --git a/.zsh.after/hostspecific.zsh b/.zsh.after/hostspecific.zsh
index 577e13b..290dbe2 100644
--- a/.zsh.after/hostspecific.zsh
+++ b/.zsh.after/hostspecific.zsh
@@ -1,8 +1,10 @@
case "$HOST" in
s4|s5|c*)
+ . $HOME/.zsh.after/apt
. $HOME/.zsh.after/unixpool
;;
giev)
+ . $HOME/.zsh.after/apt
. $HOME/.zsh.after/giev
;;
esac
diff --git a/.zsh.after/unixpool b/.zsh.after/unixpool
index 8255692..d3498a1 100644
--- a/.zsh.after/unixpool
+++ b/.zsh.after/unixpool
@@ -31,45 +31,6 @@ alias QWdisplay="watch 'for n in {1..3}; do scli -c \"show printer display\" ps\
#alias pyadm="/net/adm/pyadm-64ready/start.py"
alias synergys='synergys -c .config/synergy-$HOST.conf'
-#TODO: add pacman to apt-get conversion for all pacman aliases
-alias paclid="sudo pacman -Qi | sed '/^Depends On/,/^Required By/{ s/^Required By.*$//; H; d }; /^Name/!d; /^Name/{ n;x;}'| sed '/^$/s//==================================================================================/'"
-alias pacsize="pacman -Qi | awk '/^Name/ {pkg=\$3} /Size/ {print \$4\$5,pkg}' | sort -n" #All packages by size
-alias pacall="sudo pacman -Qi | awk '/^Name/ {pkg=\$3} /Version/ {ver=\$3} /Size/ {size=\$4\$5} {print pkg,ver,size}' | uniq" #All packages uniquely with name, version, size
-#alias pacremorph='sudo pacman -Rs $(pacman -Qtdq)' #Remove all orphaned packages
-alias pacup='sudo apt-get update && sudo apt-get upgrade' #'sudo pacman -Syu' # Synchronize with repositories before upgrading packages that are out of date on the local system.
-alias pac='sudo apt-get install ' #'sudo pacman -S' # Install specific package(s) from the repositories
-alias pacu='sudo pacman -U' # Install specific package not from the repositories but from a file
-alias pacre='sudo apt-get remove ' #'sudo pacman -R' # Remove the specified package(s), retaining its configuration(s) and required ##dependencies
-alias pacrem='sudo apt-get purge ' #'sudo pacman -Rns' # Remove specified package(s), its configuration(s) and unneeded depends
-alias pacsearch="pacman -Sl | cut -d' ' -f2 | grep " # Search through all available packages in repo
-#alias pacname='dpkg -l|grep Name|grep ' #'sudo pacman -Qi|grep Name|grep ' #Search through names of packages by string
-alias pacri='sudo apt-get update && sudo apt-cache show ' #'pacman -Si' # Display information about a given package in the repositories
-alias pacrs='sudo apt-get update && sudo apt-cache search ' #'pacman -Ss' # Search for package(s) in the repositories
-alias pacli='dpkg -l ' #'pacman -Qi' # Display information about a given package in the local database
-alias pacls='dpkg -l|grep ' #'pacman -Qs' # Search for package(s) in the local database
-alias pacorph='sudo pacman -Qdt' # Search for orphan packages
-alias paclist='dpkg -L' #'sudo pacman -Ql' # List installed files of a given package
-alias pacg='pacman -Sg' #List all groups or all packages in specified group
-alias pacclean='sudo pacman -Sc' # Remove all packages from local repository, not installed atm, remove all unused repos
-alias pacconf='sudo find /etc -name "*.pac*" -type f -print' # Search for .pacnew and .pacsave files
-alias pacfile='dpkg -S ' #'sudo pacman -Qo' # Find out what package a give file belongs to
-alias pacupd='sudo apt-get update' #'sudo pacman -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories
-alias pacdep='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package
-alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
-alias packup='comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > $HOME/Dropbox/sync/archlinux/pkglist-$HOST' # Backup the current list of non-local packages
-alias pacret='sudo pacman -S $(< $HOME/Dropbox/sync/archlinux/pkglist-$HOST)' # Install from the backup list
-alias pacredown='sudo pacman -S $(comm -23 <(pacman -Qeq) <(pacman -Qmq))' # Redownload all installed packages (minus AUR)
-alias pacdis='rm -f $HOME/Dropbox/sync/archlinux/non-pkg-$HOST; sudo pacman-disowned > $HOME/Dropbox/sync/archlinux/non-pkg-$HOST' # Getting a list of files not owned by any package
-alias packimp='sudo pacman-key -r ' #Import a key ID to the pacman keyring
-alias packsign='sudo pacman-key --lsign-key ' #Sign a key ID after importing it to the keyring
-alias packref='sudo pacman-key --refresh-keys' #Refresh the list of master keys
-
-##Yaourt aliases
-alias yaup='yaourt -Syu --devel --aur' # Updates all locally installed repository, AUR and git packages
-alias yadb='yaourt -B $HOME/Dropbox/sync/archlinux' # Backs up the yaourt database
-alias ya='sudo apt-get -t testing install ' # Install packages from AUR/Testing
-
-
# set pulseaudio server to s4
if [ -f "`which pax11publish`" ];
then