Last active
February 13, 2025 15:39
-
-
Save TehShrike/0edfc919ff8b701672b1b069cc5795b6 to your computer and use it in GitHub Desktop.
.zprofile 2025-02-13
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
eval "$(/opt/homebrew/bin/brew shellenv)" | |
alias sublime="open -a 'Sublime Text.app'" | |
# alias mysql="/usr/local/mysql/bin/mysql" | |
alias mysql-start="/usr/local/mysql/support-files/mysql.server start" | |
alias flushcache="dscacheutil -flushcache;sudo killall -HUP mDNSResponder" | |
alias jsdate="node -e \"console.log(new Date())\"" | |
alias lsl="ls -l" | |
alias gh=gh-home | |
alias gum="git fetch upstream && git checkout upstream/master" | |
alias guf="git fetch upstream && git checkout upstream/feature/migrate-orders-and-shipments" | |
alias gpu="git push --set-upstream upstream `git rev-parse --abbrev-ref HEAD -- | head -n 1`" | |
alias gce="git config user.email \"[email protected]\"" | |
alias gcb="git checkout -b" | |
alias gui="smerge" | |
alias gi="echo node_modules > .gitignore" | |
alias youtube-to-mp3="youtube-dl --extract-audio --audio-format=mp3" | |
alias lsl="ls -l" | |
alias autoraise="~/scripts/AutoRaise/AutoRaise -delay 0 -warpX 0.5 -warpY 0.5 -verbose true" | |
review () { | |
git checkout master || git checkout main | |
git branch -D pr/$1 | |
git fetch origin refs/pull/$1/head:refs/remotes/origin/pr/$1 --force | |
git checkout -b pr/$1 origin/pr/$1 | |
} | |
# https://stackoverflow.com/a/6127884/201789 | |
alias delete_merged_branches="git fetch upstream && git branch --merged upstream/HEAD | egrep -v \"(^\*)\" | xargs git branch -d" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ......="cd ../../../../.." | |
export PATH=/usr/local/bin:/opt/local/bin:/Users/joshduff/scripts:$PATH | |
export PATH=/Users/joshduff/Dropbox/dev-environment/scripts:$PATH | |
export PATH="$PATH:$HOME/npm/bin" | |
export PATH="/Users/joshduff/.deno/bin":$PATH | |
export PATH=~/.npm-global/bin:$PATH | |
export PATH=/Applications/Sublime\ Merge.app/Contents/SharedSupport/bin/:$PATH | |
export PATH=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/:$PATH | |
export PATH=/Users/joshduff/arangodb3-3.6.5/bin/:$PATH | |
export PATH="/usr/local/opt/python/libexec/bin:$PATH" | |
export PATH="/usr/local/mysql-8.0.27-macos11-arm64/bin:$PATH" | |
export PATH="/Applications/ArangoDB3-CLI.app/Contents/Resources/opt/arangodb/bin:$PATH" | |
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH" | |
export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH" | |
export PATH="$HOME/.cargo/env:$PATH" | |
# export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | |
# export PUPPETEER_EXECUTABLE_PATH=`which chromium` | |
fpath=(~/.zsh $fpath) | |
zstyle ':completion:*:*:git:*' script ~/scripts/git-completion.bash | |
autoload -Uz compinit && compinit | |
#export ZPLUG_HOME=/opt/homebrew/opt/zplug | |
#source $ZPLUG_HOME/init.zsh | |
#C_DEFAULT="\[\033[m\]" | |
#C_WHITE="\[\033[1m\]" | |
#C_BLACK="\[\033[30m\]" | |
#C_RED="\[\033[31m\]" | |
#C_GREEN="\[\033[32m\]" | |
#C_YELLOW="\[\033[33m\]" | |
#C_BLUE="\[\033[34m\]" | |
#C_PURPLE="\[\033[35m\]" | |
#C_CYAN="\[\033[36m\]" | |
#C_LIGHTGRAY="\[\033[37m\]" | |
#C_DARKGRAY="\[\033[1;30m\]" | |
#C_LIGHTRED="\[\033[1;31m\]" | |
#C_LIGHTGREEN="\[\033[1;32m\]" | |
#C_LIGHTYELLOW="\[\033[1;33m\]" | |
#C_LIGHTBLUE="\[\033[1;34m\]" | |
#C_LIGHTPURPLE="\[\033[1;35m\]" | |
#C_LIGHTCYAN="\[\033[1;36m\]" | |
#C_BG_BLACK="\[\033[40m\]" | |
#C_BG_RED="\[\033[41m\]" | |
#C_BG_GREEN="\[\033[42m\]" | |
#C_BG_YELLOW="\[\033[43m\]" | |
#C_BG_BLUE="\[\033[44m\]" | |
#C_BG_PURPLE="\[\033[45m\]" | |
#C_BG_CYAN="\[\033[46m\]" | |
#C_BG_LIGHTGRAY="\[\033[47m\]" | |
#export PS1="\n$C_LIGHTGREEN\u $C_LIGHTGRAY@ $C_LIGHTGREEN\h $C_LIGHTGRAY: $C_LIGHTYELLOW\w $C_LIGHTCYAN"'$(__git_ps1 "(%s)")'"\n$C_LIGHTGRAY\$ $C_DEFAULT " | |
source /Users/joshduff/scripts/git-prompt.zsh | |
ZSH_GIT_PROMPT_SHOW_UPSTREAM="no" | |
ZSH_THEME_GIT_PROMPT_PREFIX="[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="] " | |
ZSH_THEME_GIT_PROMPT_SEPARATOR="|" | |
ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_bold[cyan]%}:" | |
ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_bold[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}⟳ " | |
ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[red]%}(%{$fg[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="%{$fg[red]%})" | |
ZSH_THEME_GIT_PROMPT_BEHIND="↓" | |
ZSH_THEME_GIT_PROMPT_AHEAD="↑" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}✖" | |
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}●" | |
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[red]%}✚" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="…" | |
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}⚑" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔" | |
# copied from https://github.com/woefe/git-prompt.zsh/blob/master/examples/default.zsh | |
PROMPT='%B%100<..<%~ %b$(gitprompt)' | |
PROMPT+='%(?.%(!.%F{white}❯%F{yellow}❯%F{red}.%F{blue}❯%F{cyan}❯%F{green})❯%f.%F{redso}❯❯❯%f) ' | |
RPROMPT='' | |
alias patch='pre-version && npm version patch && post-version' | |
alias feature='pre-version && npm version minor && post-version' | |
alias breaking='pre-version && npm version major && post-version' | |
alias pre-version='git diff --exit-code && npm prune && npm install -q && npm test' | |
alias post-version='(npm run build; exit 0) && git diff --exit-code && git push && git push --tags && npm publish' | |
alias initial-publish='pre-version && npm version 1.0.0 --allow-same-version && post-version' | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment