dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 23824a06700deca6da6fcc12c5f0b678f422bac6
parent 8049b21348cfaad52fc4383ec8f89b812b8c4cfb
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 21 Oct 2018 15:50:24 +0200

Env variable to store dotfiles dir (and conf gets it)

Diffstat:
Minstall.sh | 1+
Mshell/commonprofile | 9++++++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/install.sh b/install.sh @@ -56,3 +56,4 @@ if [ -d "vim" ]; then fi unset -f lncommand +export CONFDIR="$HOME/.dotfiles" diff --git a/shell/commonprofile b/shell/commonprofile @@ -92,7 +92,8 @@ conf() { source ~/.bashrc echo "Reloaded bash config ($(( $SECONDS-$START_TIME )) sec)." fi - + elif [ "$1" = 'get' ]; then + echo "$CONFDIR" else $(command -v git) --git-dir="$HOME"/.dotfiles/.git --work-tree "$HOME"/.dotfiles/ "$@" fi @@ -208,14 +209,16 @@ if [[ $PATH != *"/Users/alex/.bin"* ]]; then export PATH=/Users/alex/.bin:$PATH fi +# Set a variable for my confidr +export CONFDIR="$HOME/.dotfiles" + ##################### ### HOMEBREW VARIABLE CHANGES ### export EDITOR="vim" export HOMEBREW_EDITOR="vim" -CASK_REPO=$(brew --repository)/Library/Taps/homebrew/homebrew-cask -export CASK_REPO +export CASK_REPO=$(brew --repository)/Library/Taps/homebrew/homebrew-cask ###################### ### THEFUCK ###