Last active
November 20, 2023 19:41
-
-
Save mikizdr/f1ecb05ae1602cb294e5b64cbc274442 to your computer and use it in GitHub Desktop.
Short command aliases for git bach
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
# Some good standards, which are not used if the user | |
# creates his/her own .bashrc/.bash_profile | |
# --show-control-chars: help showing Korean or accented characters | |
alias ls='ls -F --color=auto --show-control-chars' | |
alias ll='ls -l' | |
# ---------------------- | |
# Laravel artisan commands | |
# ---------------------- | |
alias pa='php artisan ' | |
case "$TERM" in | |
xterm*) | |
# The following programs are known to require a Win32 Console | |
# for interactive usage, therefore let's launch them through winpty | |
# when run inside `mintty`. | |
for name in node ipython php php5 psql python2.7 | |
do | |
case "$(type -p "$name".exe 2>/dev/null)" in | |
''|/usr/bin/*) continue;; | |
esac | |
alias $name="winpty $name.exe" | |
done | |
;; | |
esac | |
# ---------------------- | |
# Git Command Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add --all' | |
alias gs='git status' | |
alias gc='git commit -m' | |
alias gr='git remote -v' | |
alias gps='git push' | |
alias gpl='git pull' | |
alias gl='git log --oneline' | |
alias gh='git reset HEAD *' | |
# PHPUnit | |
alias pu='./vendor/phpunit/phpunit/phpunit' | |
alias puc='clear && ./vendor/phpunit/phpunit/phpunit' | |
alias pf='./vendor/phpunit/phpunit/phpunit --filter=' | |
alias pfc='clear && ./vendor/phpunit/phpunit/phpunit --filter=' | |
# Sail | |
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail' | |
#-------- | |
# Laravel | |
#-------- | |
alias pat='php artisan tinker' | |
alias ll='ls -l' | |
alias pa='php artisan ' | |
alias pm='php artisan make:model ' | |
alias pmmf='php artisan make:model -mf ' | |
alias pmmfr='php artisan make:model -mfr ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment