Created
August 15, 2023 10:55
-
-
Save mafikes/1a43ce060d3e232f0951c527cc0b531c to your computer and use it in GitHub Desktop.
.bash_aliases
This file contains 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
# Folders | |
alias cdh="cd ~" | |
alias cdp="~/Projects" | |
alias cdw="~/IndigoProjects" | |
alias cdo="~/Downloads" | |
alias cdd="cd ~ && cd Downloads" | |
# Global | |
alias c="clear" | |
alias e="exit" | |
# Composer | |
alias cu="composer update --with-dependencies" | |
alias ci="composer install" | |
alias cr="composer require $1" | |
alias da="composer dump-autoload" | |
# Helper Links | |
alias androidview='scrcpy --stay-awake --show-touches' | |
# Git | |
alias p="git push origin HEAD" | |
alias pul="git pull origin HEAD" | |
alias pul="git fetch -p && git pull --rebase" | |
alias pull="pul" | |
alias spul="git pull --rebase origin HEAD" | |
alias gc="git commit -m $1" | |
alias db="git branch -D $1" | |
alias cb="git checkout $1" | |
alias nb="git checkout -b $1" | |
alias ga="git add" | |
alias gall="git add ." | |
alias gcl="git checkout -" | |
alias gce="git checkout ." | |
alias rema="git rebase master" | |
alias gac="ga && gc $1" | |
alias gicl="git clone $1" | |
alias gf="git add . && git commit --fixup=HEAD" | |
alias gra="git rebase -i master --autosquash" | |
alias gfo="git push origin HEAD --force-with-lease" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment