Created
March 8, 2023 06:25
-
-
Save muath-ye/f125857c7f2c647e47506270362c2413 to your computer and use it in GitHub Desktop.
A:\Git\etc\profile.d
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' | |
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 | |
alias gi="git init" | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gc="git commit -m" | |
alias gp="git push" | |
alias gs="git status" | |
alias gl="git log" | |
alias gigaa="git init && git add ." | |
alias gigaagc="git init && git add . && git commit -m" | |
alias gigaagch="git init && git add . && git commit -m \"hot commit\"" | |
alias gaagc="git add . && git commit -m" | |
alias gaagch="git add . && git commit -m \"hot commit\"" | |
alias gaagchgp="git add . && git commit -m \"hot commit\" && git push" | |
# Laravel Aliases | |
alias art='php artisan' | |
alias artisan="php artisan" | |
alias migrate="php artisan migrate" | |
alias serve="php artisan serve" | |
alias dump="php artisan dump" | |
alias t="phpunit" | |
# Composer Aliases | |
alias cdump='composer dumpautoload' | |
alias ci='composer install' | |
alias cu='composer update' |
C:\Users\Administrator.bashrc
# Git
alias gi="git init"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit -m"
alias gp="git push"
alias gs="git status"
alias gl="git log"
alias gigaa="git init && git add ."
alias gigaagc="git init && git add . && git commit -m"
alias gigaagch="git init && git add . && git commit -m \"hot commit\""
alias gaagc="git add . && git commit -m"
alias gaagch="git add . && git commit -m \"hot commit\""
alias gaagchgp="git add . && git commit -m \"hot commit\" && git push"
alias gpo="git pull origin"
alias gpom="git pull origin main"
# Laravel Aliases
alias art='php artisan'
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Composer Aliases
alias cdump='composer dumpautoload'
alias ci='composer install'
alias cu='composer update'
alias cr='composer require'
alias cs='composer search'
alias copycomposer="php -r 'copy(\"https://getcomposer.org/installer\", \"composer-setup.php\");'"
alias getcomposer="php composer-setup.php --filename=composer"
alias downloadcomposer="php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" && php -r \"if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\" && php composer-setup.php && php -r \"unlink('composer-setup.php');\""
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add custom aliases on your user path
C:\Users\Administrator