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
2
bash/rc
2
bash/rc
|
|
@ -1,5 +1,7 @@
|
||||||
## bashrc, called for interactive shells
|
## bashrc, called for interactive shells
|
||||||
|
|
||||||
|
[[ -z "$DOTFILES_ROOT_DIR" ]] && source "$HOME/.dotfilesrc"
|
||||||
|
|
||||||
source $DOTFILES_BASH_DIR/prompt
|
source $DOTFILES_BASH_DIR/prompt
|
||||||
source $DOTFILES_BASH_DIR/history
|
source $DOTFILES_BASH_DIR/history
|
||||||
source $DOTFILES_BASH_DIR/term_title
|
source $DOTFILES_BASH_DIR/term_title
|
||||||
|
|
|
||||||
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
|
## .profile
|
||||||
|
|
||||||
# dotfiles locations
|
. "$HOME/.dotfilesrc"
|
||||||
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"
|
|
||||||
|
|
||||||
. "$DOTFILES_ROOT_DIR/shell/autoload"
|
. "$DOTFILES_ROOT_DIR/shell/autoload"
|
||||||
|
|
||||||
export PATH
|
export PATH
|
||||||
|
|
|
||||||
2
zsh/rc
2
zsh/rc
|
|
@ -1,5 +1,7 @@
|
||||||
# zshrc, called for interactive shells
|
# zshrc, called for interactive shells
|
||||||
|
|
||||||
|
[[ -z "$DOTFILES_ROOT_DIR" ]] && source "$HOME/.dotfilesrc"
|
||||||
|
|
||||||
source $DOTFILES_ZSH_DIR/term_title
|
source $DOTFILES_ZSH_DIR/term_title
|
||||||
set_term_title # call it right now
|
set_term_title # call it right now
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue