Last active
March 13, 2024 15:19
-
-
Save MushuLeDragon/0d077949fc4f91b6b1e79690a64049ca to your computer and use it in GitHub Desktop.
Create aliases. First, enable .bash_aliases file in .bashrc. See https://doc.ubuntu-fr.org/alias
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
# sudo nano ~/.bash_aliases | |
# sudo nano ~./bashrc | |
# source ~/.bashrc | |
# For macOs | |
# nano ~/.bash_profile | |
# source ~/.zshrc | |
# source ~/.bashrc | |
# Aliases | |
## Divers | |
alias cls=clear | |
alias ll='ls -la' | |
## Symfony | |
alias sc='symfony console' | |
## Docker | |
alias dc='docker compose' | |
alias dcb='dc build' | |
alias dcbnc='dcb --no-cache' | |
alias dcd='dc down' | |
alias dcp='dc ps' | |
alias dcrm='dc rm' | |
alias dcrs='dc restart' | |
alias dcu='dc up -d' | |
## Make | |
alias mp='make php' | |
## Git | |
alias ga='git add' | |
alias gb='git branch' | |
alias gck='git checkout' | |
alias gcm='git commit -m' | |
alias gd='git diff' | |
alias gfe='git fetch' | |
alias gm='git merge' | |
alias gph='git push' | |
alias gpl='git pull' | |
alias grb='git rebase' | |
alias grbc='grb --continue' | |
alias grm='git remote -v' | |
alias gs='git status' | |
alias gst='git stash' | |
alias gstp='gst pop' | |
alias gv='git --version' | |
## Git Flow | |
alias gflow='git flow' | |
alias gfi='gflow init' | |
alias gffs='gflow feature start' | |
alias gfff='gflow feature finish' | |
alias gfrs='gflow release start' | |
alias gfrf='gflow release finish' | |
alias gfhs='gflow hotfix start' | |
alias gfhf='gflow hotfix finish' | |
## NPM | |
alias nr='npm run' | |
alias nrw='nr watch' | |
alias nrd='nr dev' | |
alias nrb='nr build' | |
export PATH="/usr/local/opt/php/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment