Skip to content

Instantly share code, notes, and snippets.

@RoySegall
Last active March 27, 2025 09:59
Show Gist options
  • Save RoySegall/8039f3dfe4814b28dd15465e87df5fe9 to your computer and use it in GitHub Desktop.
Save RoySegall/8039f3dfe4814b28dd15465e87df5fe9 to your computer and use it in GitHub Desktop.
export PATH="$HOME/.rbenv/shims:$PATH"
export ANDROID_HOME="/Users/roy/Library/Android/sdk"
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools"
export COREPACK_ENABLE_AUTO_PIN=0
# General aliases.
alias edit_aliases="fleet /Users/roysegall/.oh-my-zsh/custom/aliases.zsh"
alias reload_aliases="source ~/.zshrc"
alias video_to_gif="function video_to_gif(){ ffmpeg -i $1 $2 && gifsicle -O3 $2 -o $2 && say "Video is ready!"};video_to_gif"
alias www="cd /Users/roysegall/projects"
# the fuck - https://github.com/nvbn/thefuck#installation
eval $(thefuck --alias)
# Clicking services.
alias startBE="cd /Users/roysegall/projects/testimio && ./apps/services/services-locally.sh -l"
alias startFE="cd /Users/roysegall/projects/testimio && yarn --cwd apps/clickim start fs"
alias clickimMV3="export IS_MV3_BUILD=1 && cd /Users/roysegall/projects/testimio && yarn --cwd apps/clickim start fs"
alias startAll="cd /Users/roysegall/projects/testimio && yarn --cwd apps/clickim start all"
# gh cli alises.
alias myPrs="gh pr list --author @me"
alias createPr="gh pr create -w"
alias viewPr="gh pr view -w"
# Git aliases.
alias gck="git checkout"
alias gdf="git diff"
alias gpl="git pull --rebase"
alias gps="git push"
alias grh="git reset --hard @"
# Aliases with arguments.
gitCommitAm() {
git commit -s -am "$1"
}
gitCommitAmNoVerify() {
git commit -am -s --no-verify "$1"
}
gitRevertToMaster() {
git checkout master -- $1
}
gitRevertToBranch() {
git checkout $1 -- $2
}
alias gcm=gitCommitAm
alias gcmnf=gitCommitAmNoVerify
alias revertToMaster=gitRevertToMaster
alias revertToBranch=gitRevertToBranch
alias killByPort=killByPort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment