项目作者: shabith

项目描述 :
git bash for windows config
高级语言: Shell
项目地址: git://github.com/shabith/windows-bash-config.git
创建时间: 2014-10-10T02:03:16Z
项目社区:https://github.com/shabith/windows-bash-config

开源协议:The Unlicense

下载


Git Bash Config

A repo-centric bash config designed for Git BASH - git for windows

Features

1. Functions - .functions

Function name Description How to use
gig use gitignore.io to generate gitignore file and copy that to clipboard eg: gig windows,visualStudioCode,node
gh open gihub page of the repo gh
clone based on @stephenplusplus dotfile by @stephenplusplus

arg 1 - url
username repo remote endpoint, username on github, or name of repository.

arg 2 - (optional) name of repo
eg1: clone window-bash-config

eg2: clone yeoman generator

eg3: clone git@github.com:addyosmani/dotfiles.git
glr simple git log glr
f find shorthand

arg1 - filename
eg: f README.md
gitexport take this repo and copy it to somewhere else minus the .git stuff.

arg1 - path to export
eg: gitexport '~/static/'
mkd Create a new directory and enter it eg: mkd hello-world
fs # Determine size of a file or total size of a directory eg: fs
gitio Create a git.io short URL

arg1 - code to setup your own vanity URL

arg2 - github URL
eg: gitio shabi http://github.com/shabith
o with no arguments opens the current directory, otherwise opens the given location eg1: o

eg2: o directory
v with no arguments opens the current directory in Vim, otherwise opens the given location eg1: v

eg2: v directory
a with no arguments opens the current directory in Atom, otherwise opens the given location eg1: a

eg2: a directory
c with no arguments opens the current directory in Visual Studio Code, otherwise opens the given location eg1: c

eg2: c directory

Getting Started

  1. cd ~
  2. git clone https://github.com/shabith/windows-bash-config config
  3. cd config
  4. . setup