Skip to content

Instantly share code, notes, and snippets.

@andycarrell
Last active February 15, 2023 21:41
Show Gist options
  • Select an option

  • Save andycarrell/7f8dafd329688f81db8f0d11d3617aef to your computer and use it in GitHub Desktop.

Select an option

Save andycarrell/7f8dafd329688f81db8f0d11d3617aef to your computer and use it in GitHub Desktop.
# bash
eval $(/opt/homebrew/bin/brew shellenv)
alias bashrefresh=". ~/.bash_profile"
alias bashopen="open ~/.bash_profile"
# fnm
eval "$(fnm env)"
# mac
alias big-sur="xcode-select --install"
# go
export GOPATH=$HOME/go
# docker
alias docdie="docker ps -a -q | xargs docker stop | xargs docker rm"
alias doclist="docker ps -a"
# git
alias what="git status"
alias branchwhat="git branch --sort=-committerdate && git status"
alias commit="git commit -m"
alias fetchem="git fetch --all"
alias forcechoke="git push origin -f"
alias remaster="git pull --rebase origin master"
alias remain="git pull --rebase origin main"
alias bison="git pull --rebase origin"
alias redev="echo 'git pull --rebase origin develop'"
alias checkout="git checkout ."
alias makebranch="git checkout -b"
alias stashall="git add . && git stash"
alias prune="git branch -D"
alias pushthis="git rev-parse --abbrev-ref HEAD | xargs git push origin"
alias pullthis="git rev-parse --abbrev-ref HEAD | xargs git pull origin"
alias padd="git add -p"
alias whip="git add . && git commit -m 'WIP' --no-verify"
alias rmcommit="echo 'git rebase -p --onto SHA^ SHA'"
alias cherry="git cherry-pick"
alias cleanall="git clean -Xdf"
alias everup="nps $(npo --json | jq -r 'to_entries | map("\(.key)@\(.value.latest)") | join(" ")')"
# npm
alias npr="npm run"
alias npt="npm test"
alias npi="npm install"
alias nps="npm install --save-exact"
alias npsd="npm install --save-exact --save-dev"
alias bserve="npm run build && npx serve -s build"
alias killport="npx kill-port"
alias everup="nps $(npo --json | jq -r 'to_entries | map("\(.key)@\(.value.latest)") | join(" ")')"
eval $(/opt/homebrew/bin/brew shellenv)
export BASH_SILENCE_DEPRECATION_WARNING=1
export NPM_AUTH=
# bash
eval $(/opt/homebrew/bin/brew shellenv)
alias bashrefresh=". ~/.bash_profile"
alias bashopen="open ~/.bash_profile"
# fnm
eval "$(fnm env)"
# mac
alias big-sur="xcode-select --install"
alias rosetta="arch -x86_64"
# go
export GOPATH=$HOME/go
# docker
alias docdie="docker ps -a -q | xargs docker stop | xargs docker rm"
alias doclist="docker ps -a"
# git
alias what="git status"
alias branchwhat="git branch --sort=-committerdate && git status"
alias commit="git commit -m"
alias amend="git commit --no-edit --amend"
alias fetchem="git fetch --all"
alias forcechoke="git push origin -f"
alias remaster="git pull --rebase origin master"
alias remain="git pull --rebase origin main"
alias bison="git pull --rebase origin"
alias redev="echo 'git pull --rebase origin develop'"
alias checkout="git checkout ."
alias makebranch="git checkout -b"
alias stashall="git add . && git stash"
alias prune="git branch -D"
alias pushthis="git rev-parse --abbrev-ref HEAD | xargs git push origin"
alias pullthis="git rev-parse --abbrev-ref HEAD | xargs git pull origin"
alias padd="git add -p"
alias whip="git add . && git commit -m 'WIP' --no-verify"
alias rmcommit="echo 'git rebase --rebase-merges --onto SHA^ SHA'"
alias cherry="git cherry-pick"
alias cleanall="git clean -Xdf"
alias shlog="git log --oneline -10"
# npm
alias npr="npm run"
alias npt="npm test"
alias npi="npm install"
alias nps="npm install --save-exact"
alias npsd="npm install --save-exact --save-dev"
alias bserve="npm run build && npx serve -s build"
alias killport="npx kill-port"
# sws
alias ym="PROJECT_ID="
alias rosym="ym rosetta"
alias ymr="ym yarn"
alias ymw="ymr workspace"
alias commit="ym git commit -m"
alias ymweb="ymw @simplywallst/web"
alias ymwui="ymw @simplywallst/ui-core"
alias swsweb="yarn workspace @simplywallst/web"
alias swscap="yarn workspace @simplywallst/capacitor"
alias swsui="yarn workspace @simplywallst/ui-core"
alias cyopen="ymweb test-script --noserver"
alias bserve="ymr build:web && ymr serve --local"
alias sthard="SWS_ENV=local ymr && SWS_ENV=local ymr build && ymweb watch"
alias storybook="SWS_ENV=local ymr && SWS_ENV=local ymr build && ymwui storybook"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment