diff --git a/.zshrc b/.zshrc index 97b3f1c..4dde075 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,6 @@ -# If you come from bash you might have to change your $PATH. -# export PATH=$HOME/bin:/usr/local/bin:$PATH +SHELL=/bin/zsh +export TERM="xterm-256color" +export LC_ALL="en_US.utf8" # Path to your oh-my-zsh installation. export ZSH=/home/mcapelle/.oh-my-zsh @@ -83,3 +84,6 @@ source $ZSH/oh-my-zsh.sh # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" + +source $HOME/.config/path.sh +source $HOME/.config/alias.sh diff --git a/alias.sh b/alias.sh new file mode 100644 index 0000000..981284c --- /dev/null +++ b/alias.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +alias ll='ls -l' +alias la='ls -A' +alias l='ls -CF' +alias rm='rm -i --preserve-root' diff --git a/path.sh b/path.sh new file mode 100644 index 0000000..e61ad2b --- /dev/null +++ b/path.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +GUROBI_PATH=$(ls -d $HOME/.softwares/gurobi*/linux64) + +if [ -e "$GUROBI_PATH" ]; then + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GUROBI_PATH}/lib + PATH=${PATH}:${GUROBI_PATH}/bin + PYTHONPATH=${PYTHONPATH}:${GUROBI_PATH}/lib/python3.4_utf32 + export GRB_LICENSE_FILE=${GUROBI_PATH}/gurobi.lic +fi + +MYSOFT_PATH=$HOME/.softwares + +if [ -e "$MYSOFT_PATH" ]; then + PATH=${PATH}:${MYSOFT_PATH}/bin +fi + +export PATH +export LD_LIBRARY_PATH +export PYTHONPATH diff --git a/script.sh b/script.sh index 971df98..5f62138 100755 --- a/script.sh +++ b/script.sh @@ -1,7 +1,13 @@ -#!/bin/bash +#!/bin/sh -ln -f -s `pwd`/.emacs.el ~/ -ln -f -s `pwd`/.emacs.d ~/ -ln -f -s `pwd`/.bashrc ~/ +# Emacs configuration +ln -f -s $(pwd)/.emacs.d $HOME/ -ln -f -s `pwd`/fish ~/.config +# Shell configurations +ln -f -s $(pwd)/.bashrc $HOME/ +ln -f -s $(pwd)/.zshrc $HOME/ +ln -f -s $(pwd)/.oh-my-zsh $HOME/ +ln -f -s $(pwd)/fish $HOME/.config + +ln -f -s $(pwd)/alias.sh $HOME/.config +ln -f -s $(pwd)/path.sh $HOME/.config