Permalink
Browse files

broke out aliases

  • Loading branch information...
1 parent b4907e7 commit 1d63cb45c56182bbcfb741ac30e0b411876c5d1f @graysky2 committed Feb 23, 2013
Showing with 4 additions and 21 deletions.
  1. +0 −20 shell/.aliases
  2. +2 −0 shell/.commonrc
  3. +2 −1 shell/.zshrc
View
@@ -35,26 +35,6 @@ alias pp='sudo pacman-color -Syu'
alias upp='reflector -c "United States" -a 1 -f 3 --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist && sudo pacman-color -Syyu'
alias fpp="echo 'Server = http://mirror.us.leaseweb.net/archlinux/\$repo/os/\$arch' > /etc/pacman.d/mirrorlist && pp"
-# distro specific
-if [[ $(grep -c Fedora /etc/issue) -eq 1 ]]; then
- alias orphans='sudo package-cleanup --orphans'
- alias pp='sudo yum clean all && sudo yum upgrade && sudo yum clean all'
- alias bb='sudo bleachbit --delete system.cache system.localizations system.trash'
-elif [[ $(grep -c Ubuntu /etc/issue) -eq 1 ]]; then
- alias orphans='[[ -n $(dpkg -l "*" | egrep "^rc" | cut -d\ -f3) ]] && \
- sudo dpkg --purge $(COLUMNS=300 dpkg -l "*" | egrep "^rc" | cut -d\ -f3) ;\
- sudo apt-get autoremove ;\
- sudo apt-get remove --purge $(deborphan) ;\
- sudo apt-get autoclean'
- alias pp='sudo aptitude update && sudo aptitude upgrade && sudo aptitude clean'
- alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
-fi
-
-if [[ -f /.debian64 ]]; then
- alias pp='sudo aptitude update && sudo aptitude upgrade && sudo aptitude clean'
- alias bb='sudo bleachbit --clean system.cache system.localizations system.trash'
-fi
-
# ssh shortcuts
alias sa="$HOME/bin/s a"
alias sl="$HOME/bin/s l"
View
@@ -2,7 +2,9 @@
echo -e "\x1B]2;$(whoami)@$(uname -n)\x07"; # set terminal title
[[ -z "$PS1" ]] && return
[[ -f /etc/profile ]] && . /etc/profile
+
export MPD_HOST=$(ip addr show eno1 | grep -m1 inet | awk -F' ' '{print $2}' | sed 's/\/.*$//')
+
PATH=$PATH:$HOME/bin:$HOME/bin/browsers:$HOME/bin/makepkg:$HOME/bin/mounts:$HOME/bin/repo:$HOME/bin/benchmarking:$HOME/bin/chroots
archey
View
@@ -1,8 +1,9 @@
ZSH=$HOME/.zsh
-# load modules
for config_file ($ZSH/lib/*.zsh) source $config_file
source $ZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+
for custom_file ($HOME/.{aliases,bashrc2,commonrc,functions,functions-personal}) [[ -f $custom_file ]] && source $custom_file
+#for custom_file ($HOME/.{aliases,distro-specific_aliases,bashrc2,commonrc,functions}) [[ -f $custom_file ]] && source $custom_file
# set prompt
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) %#%{$reset_color%} '

0 comments on commit 1d63cb4

Please sign in to comment.