Last active
December 11, 2020 02:39
-
-
Save jaredyam/92bce25681c90c9c28d31f115d2b5a44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print out all PATH environment variables with \newline separated. | |
alias path='echo -e ${PATH//:/\\n}' | |
# Get today's date and pipe it to the system clipboard. | |
alias today='date +"%Y%m%d" | pbcopy' | |
# Update all packages managed by homebrew and gem (if you've installed them). | |
alias updateall='brew update && brew upgrade && brew cleanup && gem update && gem cleanup && brew doctor' | |
# Instantly create a public gist and open it with the default browser, | |
# then pipe its URL to the system clipboard. | |
# If you want to save it as a local repo and keep updating in local, | |
# see also: macOS-zsh-useful-functions/gist | |
# Prerequisites: brew install hub | |
# Usage: gist [file-to-share] | |
alias gist='hub gist create --public -o -c' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment