Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save igorvolnyi/39c148563f32f01613733b16d6d9c0c3 to your computer and use it in GitHub Desktop.
Save igorvolnyi/39c148563f32f01613733b16d6d9c0c3 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