Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Aliases

Fedora

cd /etc/profile.d
touch my-aliases.sh

Copy and paste to my-aliases.sh:

alias la='ls -lAh --color=auto'
alias gitcup='git add . && git commit -am "Updates." && git push'
alias gitcu='git add . && git commit -am "Updates."'
alias gitfap='git fetch --all --prune'

Restart terminal.

macOs

cd ~
touch .aliases

Copy and paste to .aliases:

alias la='ls -lAh --color=auto'
alias gitcup='git add . && git commit -am "Updates." && git push'
alias gitcu='git add . && git commit -am "Updates."'
alias gitfap='git fetch --all --prune'

Add this line to ~/.zshenv:

[ -f ~/.aliases ] && source ~/.aliases

Restart terminal.