diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2015-08-30 20:00:00 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2015-08-30 22:02:56 +0200 |
commit | a06e98948faedbbe2aef7bec94ef34d53cb906dd (patch) | |
tree | 5146ff9181e2739a3c1704973aafbec189cfe9d7 /.zsh/zshrc | |
parent | 50e2c6171354cceae06488a8d485c99212d9d0a7 (diff) | |
download | dotfiles-a06e98948faedbbe2aef7bec94ef34d53cb906dd.tar.gz dotfiles-a06e98948faedbbe2aef7bec94ef34d53cb906dd.tar.bz2 dotfiles-a06e98948faedbbe2aef7bec94ef34d53cb906dd.zip |
[zsh] Introduce $_IS_GENTOO
Diffstat (limited to '.zsh/zshrc')
-rw-r--r-- | .zsh/zshrc | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -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 |