From a33c005fd08354234b6c8599eaf6f6102e4fc655 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Dec 2016 01:52:12 +0800 Subject: _zsh: Move some environment variables to _profile --- _profile | 7 +++++++ _zsh/90-exports.zsh | 11 +++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/_profile b/_profile index 7beabfc..72d3c2f 100644 --- a/_profile +++ b/_profile @@ -78,6 +78,13 @@ export QT_IM_MODULE="${INPUT_METHOD}" # Enable the CJK N-gram tokenization algorithm for CJK indexing and search export XAPIAN_CJK_NGRAM=1 +# Default terminal type to enable more colors +export TERM="xterm-256color" + +export EDITOR="vim" +export PAGER="less" +export LESS="--ignore-case --raw-control-chars" + ## LS colors if _exists dircolors; then eval $(dircolors -b) diff --git a/_zsh/90-exports.zsh b/_zsh/90-exports.zsh index e679330..e430aea 100644 --- a/_zsh/90-exports.zsh +++ b/_zsh/90-exports.zsh @@ -2,14 +2,9 @@ # zsh/exports.zsh # -# set locale and PATH in '~/.profile' - -export EDITOR='vim' -export PAGER='less' -export LESS='--ignore-case --raw-control-chars' - -# Setup terminal, and turn on colors -#export TERM='xterm-256color' +# NOTE: +# Generic environment variables and those needing been set only once +# should go to `~/.profile'. # GnuPG: see 'gpg-agent(1)' export GPG_TTY=$(tty) -- cgit v1.2.2