mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
set up DOTFILES_* vars for non-login shells too
This commit is contained in:
parent
02b9c5229f
commit
020d1e8a51
4 changed files with 12 additions and 6 deletions
7
home/dotfilesrc
Normal file
7
home/dotfilesrc
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# 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"
|
||||
|
||||
# vim: ft=sh
|
||||
|
|
@ -1,11 +1,6 @@
|
|||
## .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"
|
||||
|
||||
. "$HOME/.dotfilesrc"
|
||||
. "$DOTFILES_ROOT_DIR/shell/autoload"
|
||||
|
||||
export PATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue