Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
1 + 1 = 10. Computer Science is not an opinion.

Evan Colwell jercle

🤓
1 + 1 = 10. Computer Science is not an opinion.
View GitHub Profile
@jercle
jercle / fex.sh
Created June 17, 2022 05:59
Environment Variable Setter - Adding to .zshrc
View fex.sh
fex() {
if [ -z "$1" ]; then
if [ ! -f ~/.env ]; then
echo "~/.env not found!"
else
echo "Export the following from ~/.env:"
grep -v "^#" ~/.env | grep -v -e '^[[:space:]]*$'
export $(grep -v "^#" ~/.env | grep -v -e '^[[:space:]]*$' | xargs)
fi
else
@jercle
jercle / .bashrc
Last active July 7, 2019 10:33
current .bashrc
View .bashrc
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
View keybase.md

Keybase proof

I hereby claim:

  • I am jercle on github.
  • I am jercle (https://keybase.io/jercle) on keybase.
  • I have a public key whose fingerprint is B061 6753 D5D4 A7E9 6C36 B115 240B 7047 234A D237

To claim this, I am signing this object: