mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
moving DOTFILES_* to a common place
This commit is contained in:
parent
91c61d4783
commit
ee0ed1a0b2
3 changed files with 6 additions and 10 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 () {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue