Add in_git_directory to function.sh

This commit is contained in:
Ivan Malison 2016-06-19 23:50:34 -07:00
parent d1d1ebcd99
commit d1fbd293d5

View File

@ -433,3 +433,7 @@ function set_default_prompt {
function edit_script {
$EDITOR "$(which $1)"
}
function in_git_directory {
[ -d .git ]
}