Last active
March 21, 2026 14:40
-
-
Save ajrobertsonio/b315c4c4582af14f673a4d01c5ea6896 to your computer and use it in GitHub Desktop.
.zsh-env.sh December 2017
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| ZSH_THEME="pygmalion" | |
| plugins=(git z) | |
| source $ZSH/oh-my-zsh.sh | |
| # Preferred editor for local and remote sessions | |
| export EDITOR='code -w' # vscode | |
| # zsh configs | |
| alias zsh_config="code ~/.zshrc" | |
| alias env_config="zsh_config" | |
| alias source_env="source ~/.zshrc" | |
| # Code | |
| alias c="code ." | |
| # NPM | |
| alias ns="npm run start" | |
| alias nup="npm install && npm run start" | |
| # Git | |
| alias gac="git add -A && git commit -m" | |
| alias git_clean="git fetch --prune && git branch -vv | grep ': gone]' | awk '{print \$1}' | xargs git branch -D" | |
| alias gub="git checkout master && git pull" | |
| alias gup="gub" | |
| alias grs="git add . && git reset --hard" | |
| alias git_hotspots='echo "By Commits:" && \ | |
| git log --since="12 months ago" --pretty=format: --name-only | grep -v "__test" | grep -v "^$" | sort | uniq -c | sort -rg | sed '"'"'s/^[ ]*//'"'"' | awk '"'"'{print " " $0}'"'"' | head -15 && \ | |
| echo -e "\nBy Inserts and Deletions:" && \ | |
| git log --since="12 months ago" --pretty=format: --stat-width=1000 --stat | grep -v "^$" | grep -v "__test" | grep -v "package-lock.json" | grep -v "{" | grep " | " | awk '"'"'{print $1, $3}'"'"' | awk '"'"'{sum[$1] += $2} END {for (file in sum) print " " sum[file], file }'"'"' | sort -rn | head -15' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment