forked from colonelpanic/dotfiles
Add in_git_directory to function.sh
This commit is contained in:
parent
d1d1ebcd99
commit
d1fbd293d5
@ -433,3 +433,7 @@ function set_default_prompt {
|
|||||||
function edit_script {
|
function edit_script {
|
||||||
$EDITOR "$(which $1)"
|
$EDITOR "$(which $1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function in_git_directory {
|
||||||
|
[ -d .git ]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user