Skip to content

Instantly share code, notes, and snippets.

@dawsbot
Last active May 2, 2016 20:53
Show Gist options
  • Save dawsbot/6ef9850d1140dfc7f0cc7d80ac2f8485 to your computer and use it in GitHub Desktop.
Save dawsbot/6ef9850d1140dfc7f0cc7d80ac2f8485 to your computer and use it in GitHub Desktop.
Use this to add to your shell rc in seconds.
{
"files": [
"https://gist.githubusercontent.com/dawsonbotsford/6ef9850d1140dfc7f0cc7d80ac2f8485/raw/ded5c8b1749abcef297cbf031c08a962ee1f4cb9/zadd"
],
"scripts": [
"mv zadd /usr/local/bin",
"chmod +x /usr/local/bin/zadd"
]
}
#!/bin/bash
# replace zshrc with bashrc, fishrc, etc.
echo "appending $1 to ~/.zshrc"
echo "$1" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment