Created
February 18, 2018 01:09
-
-
Save elijahmanor/8a198cdd2eae23eed5a35ba451f7f91d to your computer and use it in GitHub Desktop.
aliases
This file contains 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
function npmReset() { | |
folder="$(pwd | rev | cut -d '/' -f1 | rev)" | |
cowsay "Starting to reinstall node_modules for $folder" | |
rm -rf node_modules | |
npm install -s | |
cowsay "Finished reinstalling node_modules for $folder" | |
npx node-notifier-cli -m 'npm modules reinstalled' -s Glass | |
say "Finished reinstalling node modules for $folder" | |
} | |
alias npm-reset="npmReset" | |
alias links="link-status -s -p" | |
alias git-clean-branches="git branch --merged master | grep -v -e 'master' -e '\*' | xargs -n 1 git branch -d && git remote prune origin" | |
alias prune-local="git branch --merged master | grep -v master$ | xargs git branch -d" | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias weather="curl -4 wttr.in/nashville" | |
alias vscode=code-insiders | |
alias rob="say 'How many Lowes could Rob Lowe rob if Rob Lowe could rob Lowes?'" | |
alias twitter="open -na 'Google Chrome' --args '--app=https://mobile.twitter.com'" | |
alias slack="open -na 'Google Chrome Canary' --args '--app=http://planview.slack.com/'" | |
alias zshrc="code ~/.zshrc" | |
alias zshrc-source="source ~/.zshrc" | |
alias server="python -m SimpleHTTPServer 8080" | |
alias code-empty="code --extensions-dir ~/code-profiles/empty/exts --user-data-dir ~/code-profiles/empty/data" | |
alias code-teach="code --extensions-dir ~/code-profiles/teach/exts --user-data-dir ~/code-profiles/teach/data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment