Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created July 10, 2017 18:54
Show Gist options
  • Save diegopacheco/b00cb03258ff99bcb0684c39347a55b5 to your computer and use it in GitHub Desktop.
Save diegopacheco/b00cb03258ff99bcb0684c39347a55b5 to your computer and use it in GitHub Desktop.
How to export function in ZSH?
touch ~/.zsh_functions
vim ~/.zsh_functions
function jcurl() {
  curl -s "$@" | json | pygmentize -l json
}

function tojson(){
  json | pygmentize -l json
}
vim ~/.zshrc
source ~/.zsh_functions
jcurl http://ip.jsontest.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment