Skip to content

Instantly share code, notes, and snippets.

@jaredpalmer
Last active March 26, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredpalmer/324ba6892869928c1da6505b9390dc94 to your computer and use it in GitHub Desktop.
Save jaredpalmer/324ba6892869928c1da6505b9390dc94 to your computer and use it in GitHub Desktop.
some zsh utils
# Take a screenshot every n seconds
# Fun for making timelapse gifs later
# run `creep 20` for every 20 seconds
function creep() {
while :; do; echo "📸" $(date +%H:%M:%S); screencapture -x ~/Screenshots/wes/$(date +%s).png; sleep $1; done
}
alias db="cd ~/Dropbox/"
alias zs="source ~/.zshrc"
alias gum="git pull upstream master"
# Changed your .gitignore _after_ you have added / committed some files?
# run `gri` to untrack anything in your updated .gitignore
# Put this in your .zshrc file
alias gri="git ls-files --ignored --exclude-standard | xargs -0 git rm -r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment