Last active
August 29, 2015 14:08
-
-
Save njames/b610b6388c593450a103 to your computer and use it in GitHub Desktop.
Alias for bash
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
source ~/.git-prompt-coloured.sh | |
alias vm="cd /var/www/laravel/Homestead/;vagrant up" | |
alias hs="cd /var/www/laravel/Homestead/;vagrant ssh" | |
alias xo="xdg-open $PWD" | |
alias copy="xclip -sel clip" | |
#alias cdv="DIR=/var/www/"$1";cd $DIR" | |
alias e="echo $1" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
function cdv(){ | |
D='/var/www/'"$1" | |
cd $D | |
} | |
# up & down map to history search once a command has been started. | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' | |
alias pa="php artisan " | |
#Vagrant aliases | |
alias v="vagrant " | |
# Git aliases | |
alias g="git" | |
alias gs="git status" | |
alias gh="git --help" | |
alias gp="git push" | |
function gc { git commit -a -m "$*" ;} # great for gc my new commit | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment