Skip to content

Instantly share code, notes, and snippets.

@neocsr
Created January 26, 2011 02:34
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 neocsr/796127 to your computer and use it in GitHub Desktop.
Save neocsr/796127 to your computer and use it in GitHub Desktop.
Cygwin bash in Windows
# Environment Variables
# #####################
# TMP and TEMP are defined in the Windows environment. Leaving
# them set to the default Windows temporary directory can have
# unexpected consequences.
unset TMP
unset TEMP
# Alternatively, set them to the Cygwin temporary directory
# or to any other tmp directory of your choice
# export TMP=/tmp
# export TEMP=/tmp
# Or use TMPDIR instead
# export TMPDIR=/tmp
# History Options
# ###############
# Don't put duplicate lines in the history.
export HISTCONTROL="ignoredups"
alias ls='ls -G'
alias l='ls -alh'
alias sshcrake='ssh crake@192.168.4.43'
alias doc='cd '
alias pro='cd /cygdrive/d/Projects/'
alias nyu='cd /cygdrive/d/Projects/RubySpider/'
alias raku='cd /cygdrive/d/Projects/Rakusatsu/Rakusatsu'
alias home='cd /cygdrive/c/cygwin/home/skillup/'
alias lib='cd /cygdrive/d/Projects/'
alias zotero='cd /cygdrive/d/Zotero/'
alias prof='vim ~/.bashrc'
alias ungit="find . -name '.git' -exec rm -rf {} \;"
alias gb='git branch'
alias gba='git branch -a'
alias gc='git commit -v'
alias gca='git commit -v -a'
function gg() {
git commit -v -a -m "$*"
}
alias gco='git checkout'
alias gd='git diff'
alias gdm='git diff master'
alias gl='git pull'
alias gnp="git-notpushed"
alias gp='git push'
alias gs='git status'
alias gt='git status'
alias g='git status'
alias eg='vim .git/config'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment