summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 4caa5dc..f781358 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -19,11 +19,11 @@
cmd_exists ()
{
- which -p $1 >/dev/null 2>&1
+ \which -p $1 >/dev/null 2>&1
}
git () {
- GIT=$(which -p git)
+ GIT=$(\which -p git)
case $1 in
init|clone|config)
;;
@@ -38,7 +38,7 @@ git () {
;;
esac
- $(which -p git) $@
+ $(\which -p git) $@
}
term_title()
@@ -195,7 +195,7 @@ get_git_branch ()
if [ "$REBASE_DIR" = "$GIT_DIR/rebase-merge" ]
then
current=$(< $REBASE_DIR/done wc -l)
- last=$(( $current + $(< $REBASE_DIR/git rebase-todo grep -v "^#\|^[[:blank:]]*$" | wc -l) ))
+ last=$(( $current + $(< $REBASE_DIR/git-rebase-todo grep -v "^#\|^[[:blank:]]*$" | wc -l) ))
rebase=$rebase$rebase_in_progress": "
else
current=$(cat $REBASE_DIR/next)