diff --git a/bash/profile b/bash/profile index c649c97..593eab8 100644 --- a/bash/profile +++ b/bash/profile @@ -1,10 +1,5 @@ ## 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 source ~/.profile diff --git a/bash/rc b/bash/rc index 32cdc20..4d7cf10 100644 --- a/bash/rc +++ b/bash/rc @@ -5,11 +5,13 @@ source $DOTFILES_BASH_DIR/history source $DOTFILES_BASH_DIR/term_title source $DOTFILES_BASH_DIR/completion +# Make bash check its window size after a process completes +shopt -s checkwinsize + # easy on spelling mistakes shopt -s cdspell # turn off distractive bells set bell-style none - # vim: ft=sh diff --git a/home/profile b/home/profile index 22e5b16..1f4d80c 100644 --- a/home/profile +++ b/home/profile @@ -1,5 +1,11 @@ ## .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" + . "$DOTFILES_ROOT_DIR/shell/autoload" export PATH diff --git a/zsh/profile b/zsh/profile index b656220..f91a374 100644 --- a/zsh/profile +++ b/zsh/profile @@ -1,10 +1,5 @@ # 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 source ~/.profile emulate zsh