This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/functions/environment.zsh
2011-07-14 22:44:49 -04:00

30 lines
841 B
Bash

# Smart URLs
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
# Jobs
setopt long_list_jobs
# Locale
[[ -z "$LANG" ]] && export LANG="en_US.UTF-8"
[[ -z "$LC_ALL" ]] && export LC_ALL="en_US.UTF_8"
[[ -z "$LC_COLLATE" ]] && export LC_COLLATE="en_US.UTF-8"
[[ -z "$LC_CTYPE" ]] && export LC_CTYPE="en_US.UTF-8"
[[ -z "$LC_MESSAGES" ]] && export LC_MESSAGES="en_US.UTF-8"
[[ -z "$LC_MONETARY" ]] && export LC_MONETARY="en_US.UTF-8"
[[ -z "$LC_NUMERIC" ]] && export LC_NUMERIC="en_US.UTF-8"
[[ -z "$LC_TIME" ]] && export LC_TIME="en_US.UTF-8"
# Pager
[[ -z "$PAGER" ]] && export PAGER=less
# Grep
if [[ "$DISABLE_COLOR" != 'true' ]]; then
[[ -z "$GREP_OPTIONS" ]] && export GREP_OPTIONS='--color=auto'
[[ -z "$GREP_COLOR" ]] && export GREP_COLOR='37;45'
else
export GREP_OPTIONS='--color=none'
export GREP_COLOR=''
fi