diff --git a/aliases.zsh b/aliases.zsh new file mode 100644 index 00000000..2db77c6e --- /dev/null +++ b/aliases.zsh @@ -0,0 +1,20 @@ +# Directories +DATA=/Volumes/DATA +hash -d data="$DATA" +hash -d crs="$DATA/cours" +hash -d dev="$DATA/dev" +hash -d dld="$DATA/downloads" +hash -d doc="$DATA/documents" + +# Suffixes +#alias -s jpg='feh -dx' +#alias -s png='feh -dx' +#alias -s svg='firefox' +alias -s asy='asy' + +# ZSH +alias zshcfg="nano $HOME/.zshrc" +alias zshrld="source $HOME/.zshrc" + +# Midnight Commander +#alias mc='LD_PRELOAD=/usr/lib/libtrash.so.3.3 mc' diff --git a/environment.zsh b/environment.zsh new file mode 100644 index 00000000..4d314a47 --- /dev/null +++ b/environment.zsh @@ -0,0 +1,46 @@ +# Variables +pkgsrc=/opt/pkg +ports=/opt/ports + +# Some global vars +export EDITOR=vim +export WORKON_HOME=/Volumes/DATA/dev/python/.virtualenvs +export PROJECT_HOME=/Volumes/DATA/dev/python +export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python +export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv +export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages' + +# Custom paths +export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH +export MANPATH=/usr/local/share/man:$MANPATH + +# PkgSrc paths +#export PATH=$pkgsrc/bin:$pkgsrc/sbin:$pkgsrc/gnu/bin:$PATH +#export MANPATH=$pkgsrc/man:$pkgsrc/share/man:$MANPATH + +# MacPorts paths +#export PATH=$ports/bin:$ports/sbin:$PATH +#export INFOPATH=$ports/share/info:$INFOPATH +#export MANPATH=$ports/man:$MANPATH + +# TeX Live paths +export INFOPATH=/usr/local/texlive/2015/texmf-dist/doc/info:$INFOPATH +export MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATH +export PATH=/usr/local/texlive/2015/bin/x86_64-darwin:$PATH + +# Perl paths +PATH="/Users/jeff/perl5/bin${PATH+:}${PATH}"; export PATH; +PERL5LIB="/Users/jeff/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB; +PERL_LOCAL_LIB_ROOT="/Users/jeff/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT; +PERL_MB_OPT="--install_base \"/Users/jeff/perl5\""; export PERL_MB_OPT; +PERL_MM_OPT="INSTALL_BASE=/Users/jeff/perl5"; export PERL_MM_OPT; + +# Brew +export HOMEBREW_GITHUB_API_TOKEN="ff63b6db62e214113aec1736b18d871939c06b39" + +# Evaluate system PATH +#if [ -x /usr/libexec/path_helper ]; then +# eval `/usr/libexec/path_helper -s` +#fi + +source $(which virtualenvwrapper.sh) diff --git a/functions.zsh b/functions.zsh new file mode 100644 index 00000000..e69de29b