Creating Aliases
Writing commands can get tedious, setting aliases can help
The Problem
Having to type the same commands over and over
The Solution
open config in editor:
nano ~/.bashrc
Add alias
alias alias_name="command_to_run" to create aliases
## Examples
alias ll="ls -la" # long format list
alias nm="npm"
alias pn="pnpm"
alias pa="php artisan"
### Git
alias ga="git add"
alias gc="git commit -m"
alias gco="git checkout"
alias gcob="git checkout -b"
Back to log