Last active
November 8, 2018 09:56
-
-
Save kullarkert/7d3d95bb210add24d55a78935055c1e0 to your computer and use it in GitHub Desktop.
Shell aliases
This file contains hidden or 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 more ls aliases | |
alias l="ls -alF --color|more" | |
alias la="ls -A" | |
alias sizes="du -s * |sort -nr |head" | |
# Alias for mercurial (hg) | |
alias h=hg | |
alias hdiff="hg diff" | |
alias hs="hg status" | |
alias hcommit="hg commit" | |
alias hpush="hg push" | |
alias hpull="hg pull" | |
function hclone() { hg clone ssh://[email protected]/"$@" ;} | |
function hinit() { hg init ssh://[email protected]/"$@" ;} | |
# Alias for git | |
alias g=git | |
alias gp="git push" | |
alias gpo="git push origin" | |
alias gs="git status" | |
alias gc="git checkout" | |
alias gbc="git checkout -b" | |
alias gb="git branch" | |
alias gm="git merge" | |
alias gl="git log --oneline --all --graph --decorate $*" | |
alias nah="git reset --hard;git clean -df" | |
# Alias for artisan commands | |
alias pa="php artisan" | |
alias pamm="php artisan make:model" | |
alias pamc="php artisan make:controller" | |
alias pakg="php artisan key:generate" | |
alias pamt="php artisan make:test" | |
alias msf="php artisan migrate:fresh --seed" | |
alias pami="php artisan migrate" | |
alias pads="php artisan db:seed" | |
alias pas="php artisan serve" | |
# Alias for composer | |
alias c=composer | |
alias cr="composer require" | |
alias ci="composer install" | |
alias cda="composer dump-autoload" | |
alias cu="composer update" | |
# IP addresses | |
alias ip="dig +short myip.opendns.com @resolver1.opendns.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment