A repo-centric bash config designed for Git BASH - git for windows
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 [email protected]: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 |
cd ~
git clone https://github.com/shabith/windows-bash-config config
cd config
. setup