Skip to content

Instantly share code, notes, and snippets.

@ryanpedersen42
Created December 24, 2021 16:29
Show Gist options
  • Save ryanpedersen42/635ee71c87d61968ff0bd3333040e443 to your computer and use it in GitHub Desktop.
Save ryanpedersen42/635ee71c87d61968ff0bd3333040e443 to your computer and use it in GitHub Desktop.
.direnv setup

Install and Configure

# install binary
curl -sfL https://direnv.net/install.sh | bash

# check path
ls /usr/local/bin | grep direnv

vim

  • vim ~/.zshrc
  • scroll to end of file
  • a
  • add hook
  • ESC
  • :wq
  • Quit terminal and start new session

git

# remove specific file
git rm --cached FILENAME 

# recursively remove whole directory
git rm -r --cached .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment