diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 72a51af8..a3debf2c 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -433,3 +433,7 @@ function set_default_prompt { function edit_script { $EDITOR "$(which $1)" } + +function in_git_directory { + [ -d .git ] +}