moving DOTFILES_* to a common place

This commit is contained in:
Loic Nageleisen 2012-08-13 15:49:20 +02:00
parent 91c61d4783
commit ee0ed1a0b2
3 changed files with 6 additions and 10 deletions

View file

@ -1,10 +1,5 @@
## bash_profile, called for login shells ## bash_profile, called for login shells
# dotfiles locations
DOTFILES_HOME_DIR="$(cd -P "$(dirname "$(readlink ${BASH_SOURCE[0]})")" && pwd)"
DOTFILES_ROOT_DIR="$( dirname "$DOTFILES_HOME_DIR" )"
DOTFILES_BASH_DIR="$DOTFILES_ROOT_DIR/bash"
# include .profile # include .profile
source ~/.profile source ~/.profile

View file

@ -1,5 +1,11 @@
## .profile ## .profile
# dotfiles locations
DOTFILES_HOME_DIR="$(cd -P "$(dirname "$(readlink ~/.profile)")" && pwd)"
DOTFILES_ROOT_DIR="$( dirname "$DOTFILES_HOME_DIR" )"
DOTFILES_ZSH_DIR="$DOTFILES_ROOT_DIR/zsh"
DOTFILES_BASH_DIR="$DOTFILES_ROOT_DIR/bash"
# utility functions # utility functions
path_append () { path_append () {

View file

@ -1,10 +1,5 @@
# zprofile, called for login shells # zprofile, called for login shells
# dotfiles locations
DOTFILES_HOME_DIR="$(cd -P "$(dirname "$(readlink ~/.zprofile)")" && pwd)"
DOTFILES_ROOT_DIR="$( dirname "$DOTFILES_HOME_DIR" )"
DOTFILES_ZSH_DIR="$DOTFILES_ROOT_DIR/zsh"
emulate sh emulate sh
source ~/.profile source ~/.profile
emulate zsh emulate zsh