Skip to content

Instantly share code, notes, and snippets.

@RoySegall
Last active August 30, 2021 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoySegall/8039f3dfe4814b28dd15465e87df5fe9 to your computer and use it in GitHub Desktop.
Save RoySegall/8039f3dfe4814b28dd15465e87df5fe9 to your computer and use it in GitHub Desktop.
# General aliases.
alias edit_aliases='code /Users/roy/.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/roy/projects'
# the fuck - https://github.com/nvbn/thefuck#installation
eval $(thefuck --alias)
# Clicking services.
alias startBE='cd /Users/roy/projects/testimio && ./apps/services/services-locally.sh -k'
alias startFS='cd /Users/roy/projects/testimio && yarn --cwd apps/clickim start fs'
# 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'
alias gps='git push'
alias grh='git reset --hard @'
# Aliases with arguments.
gitCommitAm() {
git commit -am "$1"
}
gitCommitAmNoVerify() {
git commit -am --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment