Last active
January 19, 2017 01:52
-
-
Save nickautomatic/3aba0e4c24e37972f057 to your computer and use it in GitHub Desktop.
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
## Global variables: | |
export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH | |
export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/ | |
## Custom Bash Prompt: | |
export PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' | |
## For nice diffs: | |
# install diff-so-fancy (npm -g diff-so-fancy) | |
# set pager to use it (git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX") | |
## FuelPHP: | |
alias oil='php oil' | |
## Git: | |
alias ga='git add' | |
alias gb='git branch' | |
alias gco='git checkout' | |
alias gcm='git commit -m' | |
alias gd='git diff' | |
alias gl="git log --graph --date-order --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(yellow) %an %Creset' --abbrev-commit --date=relative" | |
alias gm='git merge' | |
alias gpl='git pull' | |
alias gps='git push' | |
alias gr='git remote' | |
alias grb='git rebase' | |
alias grs='git reset' | |
alias gs='git status' | |
alias kraken='~/AppData/Local/gitkraken/Update.exe --processStart gitkraken.exe' | |
## Vagrant | |
alias v='vagrant' | |
alias homestead='function __homestead() { (cd /c/www/homestead && vagrant $*); unset -f __homestead; }; __homestead' | |
## Other commands: | |
alias explore='explorer' | |
alias ll='ls -alFh --color' | |
alias subl='subl -a' # adding -a flag to sublime prevents double window-opening | |
alias x='exit' | |
echo | |
echo 'Loaded custom .bashrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment