Skip to content

Instantly share code, notes, and snippets.

@gidgid
Last active April 9, 2020 13:29
Show Gist options
  • Save gidgid/c5f3388974e192537eb7c0021751906b to your computer and use it in GitHub Desktop.
Save gidgid/c5f3388974e192537eb7c0021751906b to your computer and use it in GitHub Desktop.
Source different env files
# source relevant env files via fzf
# note that sf() can also be used without Kubectl
sf() {
find ~/.envs -type f | fzf | while read filename; do source $filename; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment