Skip to content

jfillmore/autoenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AUTOENV

usage info

Minimalist Usage

Add autoenv to an otherwise unmodified environment.

# snag the script
curl -s \
    -o ~/.autoenv.sh \
    https://raw.githubusercontent.com/jfillmore/autoenv/main/autoenv.sh

# initialize ourself
source ~/.autoenv.sh

# ensure it runs by default for interactive shells
echo 'if [[ "$-" =~ 'i' ]]; then source ~/.autoenv.sh; fi' >> ~/.bashrc

The JKF Way

Initialize things with a nice bash config, vim configs, and usefule scripts.

# clone the repo
(mkdir -p ~/dev/jkf && cd ~/dev/jkf && git clone https://github.com/jfillmore/autoenv.git)

# initialize ourself
source ~/dev/jkf/autoenv/autoenv.sh

# setup a home env w/ a handy sync source
yes | ae create ~ home
echo 'https://raw.githubusercontent.com/jfillmore/autoenv-home/main' \
    > ~/.autoenv/vars/AUTOENV_SYNC_URL

# sync some useful default stuff
ae reload
(cd ~ && ae sync -v bash vim)

# link autoenv to our new spot that our bash sessions will source
ln -s ~/dev/jkf/autoenv/autoenv.sh ~/.bashrc.d/

# re-init our shell
. ~/.bashrc

About

Shell automation hacks for nested "auto envs": custom scripts, aliases, daemons, file syncing, etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages