X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c41cdd740de318a784a94f53a5089d9bcc3aa6f2;hb=38316b5764b899a4a60ffdafcfa1b7aec34eaf80;hp=0b7e07316ecd07c769a43b678ebf5d975d61a186;hpb=18b7e044e9a2b6078f4a665a170f6629d5b9c9f1;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 0b7e073..c41cdd7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -347,7 +347,7 @@ NOMENU=${NOMENU:-0} NOPRECMD=${NOPRECMD:-0} COMMAND_NOT_FOUND=${COMMAND_NOT_FOUND:-0} GRML_ZSH_CNF_HANDLER=${GRML_ZSH_CNF_HANDLER:-/usr/share/command-not-found/command-not-found} -GRML_DISPLAY_BATTERY=${GRML_DISPLAY_BATTERY:-0} +GRML_DISPLAY_BATTERY=${GRML_DISPLAY_BATTERY:-${BATTERY:-0}} GRMLSMALL_SPECIFIC=${GRMLSMALL_SPECIFIC:-1} ZSH_NO_DEFAULT_LOCALE=${ZSH_NO_DEFAULT_LOCALE:-0} @@ -358,7 +358,7 @@ if ls --color=auto / >/dev/null 2>&1; then elif ls -G / >/dev/null 2>&1; then ls_options=( -G ) fi -if grep --color=auto -q "a" <<< "a"; then +if grep --color=auto -q "a" <<< "a" >/dev/null 2>&1; then grep_options=( --color=auto ) fi @@ -1439,7 +1439,7 @@ bind2maps emacs viins -- -s '^x1' jump_after_first_word bind2maps emacs viins -- -s "^x^x" hist-complete # insert unicode character -# usage example: 'ctrl-x i' 00A7 'ctrl-x i' will give you an § +# usage example: 'ctrl-x i' 00A7 'ctrl-x i' will give you an § # See for example http://unicode.org/charts/ for unicode characters code #k# Insert Unicode character bind2maps emacs viins -- -s '^xi' insert-unicode-char