Skip to content

Instantly share code, notes, and snippets.

@mukolweke
Last active August 24, 2022 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mukolweke/c34d9130c0f2c2027583bcf9f267181f to your computer and use it in GitHub Desktop.
Save mukolweke/c34d9130c0f2c2027583bcf9f267181f to your computer and use it in GitHub Desktop.
aliases.sh
# ---------------START ALIASES----------------------------------------
# Configs
alias zshc="vim ~/.zshrc"
alias wip="git add . && git commit -m 'wip'"
# Common shell functions
alias less='less -r'
alias tf='tail -f'
alias l='less'
alias lh='ls -alt | head' # see the last modified files
alias screen='TERM=screen screen'
alias cl='clear'
# PHP
## Laravel
alias art="php artisan"
alias serve="php artisan serve"
alias migrate="php artisan migrate"
alias migration="php artisan make:migration "
alias p="phpunit"
alias pf="phpunit --filter "
## Composer
alias cmp='composer'
alias cmp_r='composer require'
alias cmp_da='composer dumpautoload'
alias cmp_o='composer outdated --direct'
alias cmp_update='cd ~/.composer && composer update'
# Git
alias gst="git status -sb"
alias gl="git log"
alias ga="git add "
alias gaa="git add ."
alias gsh="git stash"
alias glast="git log -1 HEAD --stat"
alias gcm="git commit -m "
alias grm="git remote -v"
alias gdiff="git diff"
alias gconfig="git config --global -l"
alias gse="!git rev-list --all | xargs git grep -F"
alias gco="git checkout "
alias gcb="git checkout -b "
alias gpl="git pull origin "
alias gps="git push origin "
alias dev="gaa && gsh && gco dev && gpl dev"
alias develop="gaa && gsh && gco develop && gpl develop"
alias grt="git reset "
alias grta="git reset ."
# Directories
alias ..="cd ../"
alias ...="cd ../../"
alias ....="cd ../../../"
alias .....="cd ../../../../"
alias work="cd /Volumes/work"
alias cnb="cd /Volumes/work/cnb"
# Custom
alias ssh_copy="pbcopy < ~/.ssh/id_rsa.pub"
source ~/powerlevel10k/powerlevel10k.zsh-theme
# --------------END ALIASES----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment