Noumenon72 parent
While you're creating and testing aliases, it's handy to source your ~/.zshrc whenever you edit it:
I alias mdfind to grep my .docx files on my Mac:
I use an `anon` function to anonymize my Mac clipboard when I want to paste something to the public ChatGPT, company Slack, private notes, etc. I ran it through itself before pasting it here, for example.
It prints the new clipboard to stdout so you can inspect what you'll be pasting for anything it missed.
ha! alias vz="vim ~/.zshrc && . ~.zshrc" is brilliant. Editing zshrc and sourcing is something I do pretty often. Never thought to alias
What's the difference between 'source' and '.' ?
I think they're the same except '.' is POSIX and 'source' is specific to bash and compatible shells. I personally just use source since it's easier to read and zsh and bash account for basically 100% of my shell usage.
If $SHELL is /bin/sh, the source command does not exist, but '.' still works.
nothing afaict
brilliant! this happens all the time and I never found a convenient way to manage