|
|
|
# /etc/zsh/zprofile: system-wide .zprofile file for zsh(1).
|
|
|
|
#
|
|
|
|
# This file is sourced only for login shells (i.e. shells
|
|
|
|
# invoked with "-" as the first character of argv[0], and
|
|
|
|
# shells invoked with the -l flag.)
|
|
|
|
#
|
|
|
|
# Global Order: zshenv, zprofile, zshrc, zlogin
|
|
|
|
#
|
|
|
|
# Executes commands at login pre-zshrc.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Browser
|
|
|
|
#
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
|
|
export BROWSER='open'
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Editors
|
|
|
|
#
|
|
|
|
|
|
|
|
export EDITOR='vim'
|
|
|
|
export VISUAL='vim'
|
|
|
|
export PAGER='less'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Language
|
|
|
|
#
|
|
|
|
|
|
|
|
if [[ -z "$LANG" ]]; then
|
|
|
|
export LANG='fr_FR.UTF-8'
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Paths
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ensure path arrays do not contain duplicates.
|
|
|
|
typeset -gU cdpath fpath mailpath path
|
|
|
|
|
|
|
|
# Set the the list of directories that cd searches.
|
|
|
|
# cdpath=(
|
|
|
|
# $cdpath
|
|
|
|
# )
|
|
|
|
|
|
|
|
# Set the list of directories that Zsh searches for programs.
|
|
|
|
path=(
|
|
|
|
$HOME/git/linux-config/dotfiles/bin
|
|
|
|
"$(ruby -e 'print Gem.user_dir')/bin"
|
|
|
|
/usr/local/{bin,sbin}
|
|
|
|
$HOME/.cabal/bin
|
|
|
|
$HOME/.xmonad/bin
|
|
|
|
$HOME/bin
|
|
|
|
$HOME/.gem/ruby/2.2.0/bin
|
|
|
|
$HOME/miniconda3/bin
|
|
|
|
$path
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Less
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the default Less options.
|
|
|
|
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
|
|
|
|
# Remove -X and -F (exit if the content fits on one screen) to enable it.
|
|
|
|
export LESS='-F -g -i -M -R -S -w -X -z-4'
|
|
|
|
|
|
|
|
# Set the Less input preprocessor.
|
|
|
|
#if (( $+commands[lesspipe.sh] )); then
|
|
|
|
# export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'i
|
|
|
|
#fi
|
|
|
|
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
|
|
|
|
if (( $#commands[(i)lesspipe(|.sh)] )); then
|
|
|
|
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Temporary Files
|
|
|
|
#
|
|
|
|
|
|
|
|
if [[ ! -d "$TMPDIR" ]]; then
|
|
|
|
export TMPDIR="/tmp/$USER"
|
|
|
|
mkdir -p -m 700 "$TMPDIR"
|
|
|
|
fi
|
|
|
|
|
|
|
|
TMPPREFIX="${TMPDIR%/}/zsh"
|
|
|
|
|
|
|
|
# Setting PATH for Python 3.6
|
|
|
|
# The original version is saved in .zprofile.pysave
|
|
|
|
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
|
|
|
|
|
|
|
|
export PATH
|
|
|
|
if [[ ! -d "$TMPPREFIX" ]]; then
|
|
|
|
mkdir -p "$TMPPREFIX"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Configuration GnuPG
|
|
|
|
eval $(gpg-agent --daemon --enable-ssh-support --enable-putty-support)
|
|
|
|
eval $(ssh-agent -s)
|
|
|
|
#
|
|
|
|
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
|
|
|
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
|
|
|
|
|
|
|
#Token
|
|
|
|
export KEY_TOKEN=''
|