Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Bash profile #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,30 @@ Customizing
Most `git-sh` behavior can be configured by editing the user or system gitconfig
files (`~/.gitconfig` and `/etc/gitconfig`) either by hand or using
`git-config(1)`. The `[alias]` section is used to create basic command aliases.

The `/etc/gitshrc` and `~/.gitshrc` files are sourced (in that order)
immediately before the shell becomes interactive.

The `~/.bashrc` file is sourced before either `/etc/gitshrc` or `~/.gitshrc`.
Any bash customizations defined there and not explicitly overridden by `git-sh`
are also available.

Installing git-flow (optional)
------------
Git-sh supports git-flow plugin, to install gitflow you can use the next url https:/nvie/gitflow/wiki/Installation

You can also install it manually using the next steps.

$ git clone --recursive git:/nvie/gitflow.git
$ cd gitflow
$ sudo make install

Then start a shell with `git-sh` and you will have access to flow plugin:

$ git-sh
master!git-sh> flow feature start NEWFEAUTURE

For more information visit https:/nvie/gitflow

Copying
-------

Expand Down
6 changes: 6 additions & 0 deletions git-sh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exec /usr/bin/env bash --rcfile "$0" "$@"
popd > /dev/null
}

[ -r ~/.bash_profile ] && {
pushd ~ > /dev/null
. .bash_profile
popd > /dev/null
}

# ALIASES + COMPLETION =========================================================

Expand Down Expand Up @@ -100,6 +105,7 @@ _git_cmd_cfg=(
'fetch alias stdcmpl'
'format-patch alias stdcmpl'
'fsck alias'
'flow alias'
'gc alias stdcmpl'
'gui alias'
'hash-object alias'
Expand Down