summaryrefslogtreecommitdiff
path: root/.zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zsh/zshrc')
-rw-r--r--.zsh/zshrc33
1 files changed, 23 insertions, 10 deletions
diff --git a/.zsh/zshrc b/.zsh/zshrc
index 88baa18..a8024e8 100644
--- a/.zsh/zshrc
+++ b/.zsh/zshrc
@@ -1,11 +1,16 @@
# provide the is-at-least command
autoload is-at-least
+# check for Gentoo
+if [[ -e /etc/gentoo-release ]]; then
+ _IS_GENTOO=1
+fi
+
# Alias definition {{{
#################################################
# directory aliases
-hash -d ulp=/usr/local/portage
+[[ -n $_IS_GENTOO ]] && hash -d ulp=/usr/local/portage
# the | cmd aliases
alias -g L='| less'
@@ -30,15 +35,17 @@ alias la='ls -a'
# prevent man from using localized pages
alias man='LANG= man'
-# emerge stuff
-alias AK="ACCEPT_KEYWORDS=\"$_kw\"" # _kw should be set in .zshenv
-alias NS='FEATURES="nostrip" CFLAGS="-O0 -ggdb -pipe -march=native" CXXFLAGS="${CFLAGS}"'
-alias e="eix -e"
-alias i="eix -I"
-alias ee='open_ebuild vim'
-alias eeg='open_ebuild gvim'
-alias cdu='open_ebuild _cdu'
-alias unpack='open_ebuild _unpack'
+if [[ -n $_IS_GENTOO ]]; then
+ # emerge stuff
+ alias AK="ACCEPT_KEYWORDS=\"$_kw\"" # _kw should be set in .zshenv
+ alias NS='FEATURES="nostrip" CFLAGS="-O0 -ggdb -pipe -march=native" CXXFLAGS="${CFLAGS}"'
+ alias e="eix -e"
+ alias i="eix -I"
+ alias ee='open_ebuild vim'
+ alias eeg='open_ebuild gvim'
+ alias cdu='open_ebuild _cdu'
+ alias unpack='open_ebuild _unpack'
+fi
# misc
alias quickweb='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
@@ -314,4 +321,10 @@ autoload -U zmv
# }}}
+# Cleanuo {{{
+#################################################
+
+unset _IS_GENTOO
+
+# }}}
# vim: fdm=marker