summaryrefslogtreecommitdiff
path: root/feebleline.el
diff options
context:
space:
mode:
authorBenjamin Lindqvist <benjamin.lindqvist@endian.se>2018-05-25 10:05:25 +0200
committerBenjamin Lindqvist <benjamin.lindqvist@endian.se>2018-05-25 10:05:25 +0200
commit9bc5157bf5a86da1d00702cae09c22f37a8dcb7c (patch)
treeff6b64399a4ffefd846a0f96e2fa747d7268e094 /feebleline.el
parentbfc8f248784df108cb813f829b7eda1bf0577f89 (diff)
added require 'esh-ext to git branch
Diffstat (limited to 'feebleline.el')
-rw-r--r--feebleline.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/feebleline.el b/feebleline.el
index f0cb497..f4e2d84 100644
--- a/feebleline.el
+++ b/feebleline.el
@@ -115,6 +115,7 @@ sent to `add-text-properties'.")
(defun feebleline--git-branch-string ()
"Return current git branch as a string, or the empty string if pwd is not in a git repo (or the git command is not found)."
(interactive)
+ (require 'esh-ext)
(when (and (eshell-search-path "git")
(locate-dominating-file default-directory ".git"))
(let ((git-output (shell-command-to-string (concat "cd " default-directory " && git branch | grep '\\*' | sed -e 's/^\\* //'"))))